Loading src/bin/ddclient-http +6 −1 Original line number Diff line number Diff line Loading @@ -125,8 +125,13 @@ get_myip() { fi } # returns true if domain is outdated. returns false otherwise. # returns true if DNS record is outdated. returns false otherwise. require_update() { if [ "$MYIP" = "0.0.0.0" ]; then # IP address unavailable. do not require update. return 1 fi if [ ! -f "$LAST_IP_FILE" ]; then OLDIP=`dig +short $HOSTNAME` # dig always return 0. if no A record is found, OLDIP will be Loading Loading
src/bin/ddclient-http +6 −1 Original line number Diff line number Diff line Loading @@ -125,8 +125,13 @@ get_myip() { fi } # returns true if domain is outdated. returns false otherwise. # returns true if DNS record is outdated. returns false otherwise. require_update() { if [ "$MYIP" = "0.0.0.0" ]; then # IP address unavailable. do not require update. return 1 fi if [ ! -f "$LAST_IP_FILE" ]; then OLDIP=`dig +short $HOSTNAME` # dig always return 0. if no A record is found, OLDIP will be Loading