1
0
Fork 0
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:
Ycarus 2020-02-24 10:27:15 +01:00
parent 4ed9794b3c
commit 57b1277d98

View file

@ -37,8 +37,8 @@ from enum import Enum
import logging
log = logging.getLogger('api')
log.setLevel(logging.ERROR)
#log.setLevel(logging.DEBUG)
#log.setLevel(logging.ERROR)
log.setLevel(logging.DEBUG)
# Generate a random secret key
SECRET_KEY = uuid.uuid4().hex
@ -687,6 +687,8 @@ async def config(current_user: User = Depends(get_current_user)):
locaip6='fe80::a00:1'
remoteip6='fe80::a00:2'
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
if current_user.permissions == 'ro':