mirror of
https://github.com/os-mnemo/pan-globalprotect-okta
synced 2026-07-31 07:44:38 +02:00
fix 'gateway used before assignement' error (code review by @cardonator)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user