X-Git-Url: https://git.ralfj.de/dyn-nsupdate.git/blobdiff_plain/cbd82106a0d558593db0b51c098c281fa75bc442..556b6fb987e04d7898c5520298c4e1f07b234434:/client-scripts/dyn-ns-client?ds=inline diff --git a/client-scripts/dyn-ns-client b/client-scripts/dyn-ns-client index 85c2910..e5eb56e 100755 --- a/client-scripts/dyn-ns-client +++ b/client-scripts/dyn-ns-client @@ -51,9 +51,9 @@ def getConfigDir(): def urlopen(url, config): if sys.version_info >= (3, 4, 3): - return urllib.request.urlopen(url, context=sslContext(config)).read().decode('utf-8').strip() + return urllib.request.urlopen(url, context=sslContext(config)).read().decode('utf-8').strip('\n') else: - return urllib.request.urlopen(url).read().decode('utf-8').strip() + return urllib.request.urlopen(url).read().decode('utf-8').strip('\n') def getMyIP(family, config, methods = {}, verbose = 0): '''Returns our current IP address ( can be "IPv4" or "IPv6"), detected as given by the configuration.