1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps-admin.git synced 2025-02-12 10:31:52 +00:00
This commit is contained in:
Ycarus 2020-03-27 20:26:49 +01:00
parent 3902d66ce1
commit c88f69804c

View file

@ -833,7 +833,7 @@ async def config(current_user: User = Depends(get_current_user)):
vps_uptime = os.popen("cat /proc/uptime | awk '{print $1}'").read().rstrip()
LOG.debug('get hostname')
if 'hostname' in omr_config_data:
vps_domain = omr_config['hostname']
vps_domain = omr_config_data['hostname']
else:
vps_domain = os.popen('wget -4 -qO- -T 1 http://hostname.openmptcprouter.com').read().rstrip()
if vps_domain != '':