Rev2043, Fix selected domain display

This commit is contained in:
shortcutme 2017-04-12 00:45:48 +02:00
parent c78af9773c
commit dafe9981a2
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 3 additions and 2 deletions

View file

@ -10,7 +10,7 @@ class Config(object):
def __init__(self, argv):
self.version = "0.5.3"
self.rev = 2042
self.rev = 2043
self.argv = argv
self.action = None
self.config_file = "zeronet.conf"

View file

@ -621,8 +621,9 @@ class UiWebsocket(object):
# Add my certs
auth_address = self.user.getAuthAddress(self.site.address) # Current auth address
site_data = self.user.getSiteData(self.site.address) # Current auth address
for domain, cert in self.user.certs.items():
if auth_address == cert["auth_address"]:
if auth_address == cert["auth_address"] and domain == site_data.get("cert"):
active = domain
title = cert["auth_user_name"] + "@" + domain
if domain in accepted_domains or not accepted_domains or accept_any: