fix comapre ip with dns

This commit is contained in:
rootzoll 2019-01-17 17:49:59 +01:00
parent e2360d0e08
commit 6d379d92a4

View file

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