projects
/
dyn-nsupdate.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
cbd8210
)
client: fix getting the response
author
Ralf Jung
<post@ralfj.de>
Wed, 22 Nov 2017 20:49:36 +0000
(21:49 +0100)
committer
Ralf Jung
<post@ralfj.de>
Wed, 22 Nov 2017 20:49:36 +0000
(21:49 +0100)
client-scripts/dyn-ns-client
patch
|
blob
|
history
diff --git
a/client-scripts/dyn-ns-client
b/client-scripts/dyn-ns-client
index 85c291054ae72f60b6ffa3b435db55ed6dbfcee1..e5eb56e2f430558ae547cee744fe22b0dc9e1035 100755
(executable)
--- 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):
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:
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 (<family> can be "IPv4" or "IPv6"), detected as given by the configuration.
def getMyIP(family, config, methods = {}, verbose = 0):
'''Returns our current IP address (<family> can be "IPv4" or "IPv6"), detected as given by the configuration.