X-Git-Url: https://git.ralfj.de/dyn-nsupdate.git/blobdiff_plain/2ded2634bd090dacf54effe51566cd3ab8c3aeaa..1a68dfd140219eb54670d5c961d9d684a7c63666:/client-scripts/dyn-ns-client?ds=sidebyside diff --git a/client-scripts/dyn-ns-client b/client-scripts/dyn-ns-client index 0e96bed..11e4512 100755 --- a/client-scripts/dyn-ns-client +++ b/client-scripts/dyn-ns-client @@ -61,6 +61,8 @@ def getMyIP(family, config, methods = {}, verbose = 0): method = config[family]['method'] if method == 'none': return None + elif method == 'remove': + return "" elif method == 'web': server = config[family].get('server', config['DEFAULT']['server']) url = 'https://'+server+'/checkip' @@ -151,6 +153,8 @@ def updateDomain(server, domain, ipv4, ipv6, password, config, verbose): msg += " IPv4={} (unchanged)".format(curIPv4) else: msg += " IPv4={} -> {}".format(curIPv4, ipv4) + if ipv4 is not None and ipv6 is not None: + msg += "," if ipv6 is not None: if curIPv6 == ipv6: msg += " IPv6={} (unchanged)".format(curIPv6)