Browse Source

Added check on IP when invoking -c option

master
Rune Olsen 1 year ago
parent
commit
67e4fbdb5e
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      py-dyndns.py

+ 4
- 1
py-dyndns.py View File

@@ -93,7 +93,10 @@ def listcurrent():
remote = current.read().decode('utf-8')
remoteData = json.loads(remote)
remoteIP4 = remoteData['domain_record']['data']
print(section+' : '+remoteIP4)
if remoteIP4 != local_ip4:
print(section+' : '+remoteIP4+' Update is needed!')
else:
print(section+' : '+remoteIP4)


def addnewdomin(newdata):


Loading…
Cancel
Save