mirror of
https://github.com/Ysurac/openmptcprouter-vps-admin.git
synced 2025-03-09 15:40:05 +00:00
Fix vpn initial setting
This commit is contained in:
parent
4ed9794b3c
commit
57b1277d98
1 changed files with 5 additions and 3 deletions
|
@ -37,8 +37,8 @@ from enum import Enum
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
log = logging.getLogger('api')
|
log = logging.getLogger('api')
|
||||||
log.setLevel(logging.ERROR)
|
#log.setLevel(logging.ERROR)
|
||||||
#log.setLevel(logging.DEBUG)
|
log.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
# Generate a random secret key
|
# Generate a random secret key
|
||||||
SECRET_KEY = uuid.uuid4().hex
|
SECRET_KEY = uuid.uuid4().hex
|
||||||
|
@ -687,7 +687,9 @@ async def config(current_user: User = Depends(get_current_user)):
|
||||||
locaip6='fe80::a00:1'
|
locaip6='fe80::a00:1'
|
||||||
remoteip6='fe80::a00:2'
|
remoteip6='fe80::a00:2'
|
||||||
|
|
||||||
vpn = omr_config_data['users'][0][current_user.username]['vpn']
|
vpn = 'glorytun_tcp'
|
||||||
|
if 'vpn' in omr_config_data['users'][0][current_user.username]
|
||||||
|
vpn = omr_config_data['users'][0][current_user.username]['vpn']
|
||||||
#vpn = current_user.vpn
|
#vpn = current_user.vpn
|
||||||
if current_user.permissions == 'ro':
|
if current_user.permissions == 'ro':
|
||||||
del available_vpn
|
del available_vpn
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue