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
ac16592a77
commit
3902d66ce1
1 changed files with 1 additions and 1 deletions
|
@ -812,7 +812,7 @@ async def config(current_user: User = Depends(get_current_user)):
|
|||
#ipv4_addr = os.popen('wget -4 -qO- -T 1 https://ip.openmptcprouter.com').read().rstrip()
|
||||
LOG.debug('get server IPv4')
|
||||
if 'ipv4' in omr_config_data:
|
||||
ipv4_addr = omr_config['ipv4']
|
||||
ipv4_addr = omr_config_data['ipv4']
|
||||
else:
|
||||
ipv4_addr = os.popen("dig -4 TXT +timeout=2 +tries=1 +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'\"' '{ print $2}'").read().rstrip()
|
||||
if ipv4_addr == '':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue