Commit 322dbaa5 authored by Martin Matějek's avatar Martin Matějek

Fix router ip address autodetection

parent 2847a3e0
Pipeline #54029 passed with stage
in 1 minute and 10 seconds
......@@ -497,10 +497,11 @@ verb 3
if not hostname:
# try to figure out wan ip
try:
addresses = WanStatusCommands().get_status()["ipv4-address"]
hostname = addresses[0]["address"]
except Exception:
hostname = "<server_adddress>"
addresses = WanStatusCommands().get_status()["ipv4"]
hostname = addresses[0]
except Exception as e:
logger.warning("%r", e)
hostname = "<server_address>"
cipher_section = "cipher %s" % cipher if cipher else ""
if tls_auth_path:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment