1234567891011121314151617181920212223242526272829303132333435363738394041 |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- local __URL="http://[USERNAME]:[PASSWORD]@update.spdns.de/nic/update?hostname=[DOMAIN]&myip=[IP]"
-
- [ -z "$domain" ] && write_log 14 "Service section not configured correctly! Missing 'domain'"
- [ -z "$username" ] && write_log 14 "Service section not configured correctly! Missing 'username'"
- [ -z "$password" ] && write_log 14 "Service section not configured correctly! Missing 'password'"
-
-
- __URL=$(echo $__URL | | sed -e "s#\[USERNAME\]#$URL_USER#g" -e "s#\[PASSWORD\]#$URL_PASS#g" \
- -e "s#\[PARAMENC\]#$URL_PENC#g" -e "s#\[PARAMOPT\]#$param_opt#g" \
- -e "s#\[DOMAIN\]#$domain#g" -e "s#\[IP\]#$__IP#g")
- [ $use_https -ne 0 ] && __URL=$(echo $__URL | sed -e 's#^http:#https:#')
-
- do_transfer "$__URL" || return 1
-
- write_log 7 "DDNS Provider answered:\n$(cat $DATFILE)"
-
-
-
-
- grep -i -E "good|nochg" $DATFILE >/dev/null 2>&1
- return $?
|