fix: [UI show domain] fix domain/port unpacking

This commit is contained in:
Terrtia 2019-04-18 09:54:25 +02:00
parent ddaad5db93
commit 7a5fac9a43
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -537,6 +537,11 @@ def show_domain():
except: except:
epoch = None epoch = None
port = request.args.get('port') port = request.args.get('port')
faup.decode(domain)
unpack_url = faup.get()
domain = unpack_url['domain'].decode()
if not port:
port = unpack_url['port'].decode()
try: try:
port = int(port) port = int(port)
except: except: