fix 'gateway used before assignement' error (code review by @cardonator)

This commit is contained in:
Tino Lange
2020-05-08 08:56:36 +02:00
parent a4db9833a1
commit 0aa34dc547
+2
View File
@@ -667,6 +667,8 @@ def main():
if conf.get('gateway'):
gateway = conf.get('gateway').strip()
else:
gateway = None
if gateway and not another_dance:
vpn_url = 'https://{0}'.format(gateway)