From 055f4949cd9add7e42ab48341313a0cbac9cdc05 Mon Sep 17 00:00:00 2001 From: Gilles Grandou Date: Tue, 17 Dec 2019 13:58:54 +0100 Subject: [PATCH] filter out invalid 0.0.0.0 ipv4 --- dyndomain | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dyndomain b/dyndomain index ada442a..96b6c92 100755 --- a/dyndomain +++ b/dyndomain @@ -71,6 +71,8 @@ def get_wan_addr(): wan = dict() wan['ipv4'] = r['data']['IPAddress'] wan['ipv6'] = r['data']['IPv6Address'] + if wan['ipv4'] == '0.0.0.0': + wan['ipv4'] = '' return wan