From 25492b19f695d86ae16f4efbfb429b6249a97c34 Mon Sep 17 00:00:00 2001 From: Ycarus Date: Sat, 7 Mar 2020 21:54:15 +0100 Subject: [PATCH] Fix --- omr-admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/omr-admin.py b/omr-admin.py index bc4ea88..af6dc02 100755 --- a/omr-admin.py +++ b/omr-admin.py @@ -787,11 +787,11 @@ async def config(current_user: User = Depends(get_current_user)): mlvpn_host_ip = '10.255.253.1' mlvpn_client_ip = '10.255.253.2' - if 'vpnremoteip' in omr_config_data['users'][0][current_user.username] + if 'vpnremoteip' in omr_config_data['users'][0][current_user.username]: vpn_remote_ip = omr_config_data['users'][0][current_user.username]['vpnremoteip'] else: vpn_remote_ip = '' - if 'vpnlocalip' in omr_config_data['users'][0][current_user.username] + if 'vpnlocalip' in omr_config_data['users'][0][current_user.username]: vpn_local_ip = content['users'][0][current_user.username]['vpnlocalip'] else: vpn_local_ip = ''