X-Git-Url: https://git.ralfj.de/dyn-nsupdate.git/blobdiff_plain/ce5910c07224d66252ff1921f7c181f65b574449..426e8a316ec0366f90fb8a94f4b494e9e5b72cc2:/client-scripts/dyn-ns-client diff --git a/client-scripts/dyn-ns-client b/client-scripts/dyn-ns-client index 9f8118b..383c115 100755 --- a/client-scripts/dyn-ns-client +++ b/client-scripts/dyn-ns-client @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # Copyright (c) 2014, Ralf Jung # All rights reserved. # @@ -105,7 +105,7 @@ def updateDomain(server, domain, ipv4, ipv6, password, verbose): curIPv4 = getCurIPv4(domain) curIPv6 = getCurIPv6(domain) if verbose: - print("Current status of domain {0} is: IPv4 address '{1}', IPv6 address '{2}'".format(domain, curIPv4, curIPv6)) + print("Current status of domain {} is: IPv4 address '{}', IPv6 address '{}'".format(domain, curIPv4, curIPv6)) # check if there's something to do needUpdate = (ipv4 is not None and curIPv4 != ipv4) or (ipv6 is not None and curIPv6 != ipv6)