Skip to content

Commit

Permalink
Namecoin: Enable editing dict TLS records in DNS dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Dec 12, 2019
1 parent c4e87a1 commit 6a783aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions electrum_nmc/electrum/gui/qt/configure_dns_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,13 @@ def edit_selected_record(self):

port = str(port)

if type(tls) == dict:
if "dane" in tls:
tls = tls["dane"]
else:
self.show_error(_("Only DANE-formatted TLS records can be edited."))
return

cert_usage, selector, matching_type, cert_data = tls

cert_usage = str(cert_usage)
Expand Down

0 comments on commit 6a783aa

Please sign in to comment.