mirror of
https://github.com/Ysurac/openmptcprouter-vps-admin.git
synced 2025-03-09 15:40:05 +00:00
Fix
This commit is contained in:
parent
e426e7fef3
commit
25492b19f6
1 changed files with 2 additions and 2 deletions
|
@ -787,11 +787,11 @@ async def config(current_user: User = Depends(get_current_user)):
|
||||||
mlvpn_host_ip = '10.255.253.1'
|
mlvpn_host_ip = '10.255.253.1'
|
||||||
mlvpn_client_ip = '10.255.253.2'
|
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']
|
vpn_remote_ip = omr_config_data['users'][0][current_user.username]['vpnremoteip']
|
||||||
else:
|
else:
|
||||||
vpn_remote_ip = ''
|
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']
|
vpn_local_ip = content['users'][0][current_user.username]['vpnlocalip']
|
||||||
else:
|
else:
|
||||||
vpn_local_ip = ''
|
vpn_local_ip = ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue