#301 check dynDNS not static

This commit is contained in:
rootzoll 2019-02-03 00:08:25 +01:00
parent b29c65a72a
commit ca12fdfd77

View File

@ -192,7 +192,7 @@ else
if [ ${#dynDomain} -gt 0 ]; then
#check if dyndns resolves to correct IP
ipOfDynDNS=$(getent hosts rootzoll.chickenkiller.com | awk '{ print $1 }')
ipOfDynDNS=$(getent hosts ${dynDomain} | awk '{ print $1 }')
if [ "${ipOfDynDNS}:${public_port}" != "${public_addr}" ]; then
public_color="${color_red}"
else