mirror of
https://github.com/Ysurac/openmptcprouter-vps-admin.git
synced 2025-02-12 10:31:52 +00:00
Fix
This commit is contained in:
parent
3902d66ce1
commit
c88f69804c
1 changed files with 1 additions and 1 deletions
|
@ -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 != '':
|
||||
|
|
Loading…
Reference in a new issue