- # we need to update the IP
- result = urlopen('https://'+server+'/update?password='+urllib.parse.quote(password)+'&domain='+urllib.parse.quote(domain)+'&ip='+urllib.parse.quote(myip))
- if 'good '+myip == result:
- # all went all right
- return True
- else:
- # Something went wrong
- print("Unexpected answer from server",server,"while updating",domain,"to",myip)
- print(result)
- return False
+ # we need to update the IP
+ result = urlopen('https://'+server+'/update?password='+urllib.parse.quote(password)+'&domain='+urllib.parse.quote(domain)+'&ip='+urllib.parse.quote(myip))
+ if 'good '+myip == result:
+ # all went all right
+ return True
+ else:
+ # Something went wrong
+ print("Unexpected answer from server",server,"while updating",domain,"to",myip)
+ print(result)
+ return False