filter out invalid 0.0.0.0 ipv4
This commit is contained in:
parent
79337e8411
commit
055f4949cd
@ -71,6 +71,8 @@ def get_wan_addr():
|
|||||||
wan = dict()
|
wan = dict()
|
||||||
wan['ipv4'] = r['data']['IPAddress']
|
wan['ipv4'] = r['data']['IPAddress']
|
||||||
wan['ipv6'] = r['data']['IPv6Address']
|
wan['ipv6'] = r['data']['IPv6Address']
|
||||||
|
if wan['ipv4'] == '0.0.0.0':
|
||||||
|
wan['ipv4'] = ''
|
||||||
return wan
|
return wan
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user