Browse Source

changed checkmark to + sign due to ascii-128

master
Rune Olsen 1 year ago
parent
commit
1207599c78
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      py-dyndns.py

+ 2
- 3
py-dyndns.py View File

@@ -17,7 +17,6 @@ ip6 = config['DYNDNS']['ip6']
domain_name = config['DYNDNS']['baseuri']
logging.basicConfig(filename=config['DYNDNS']['logfile'],level=logging.INFO)
local_ip4 = urllib.request.urlopen("http://ip4.iurl.no").read().decode('utf-8')

# The program


@@ -81,11 +80,11 @@ def listdomains():
current = urllib.request.urlopen(req)
remote = current.read().decode('utf-8')
remoteData = json.loads(remote)
print('Domains in config.ini are marked with a ['+u'\u2713'+']')
print('Domains in config.ini are marked with a [+]')
print('================================================')
for k in remoteData["domain_records"]:
if str(k['id']) in LocalDonains:
print('['+u'\u2713'+'] Name : '+k['name']+' Id : '+str(k['id'])+' (IP: '+str(k['data'])+')')
print('[+] Name : '+k['name']+' Id : '+str(k['id'])+' (IP: '+str(k['data'])+')')
else:
print('Name : '+k['name']+' Id : '+str(k['id'])+' (IP: '+str(k['data'])+')')



Loading…
Cancel
Save