Skip to content

Commit

Permalink
Updating the IP as the default empty action is too agressive. It requ…
Browse files Browse the repository at this point in the history
…ires now to be more explicit.
  • Loading branch information
bruncsak committed Apr 20, 2024
1 parent d58ba5b commit b3a9832
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dynu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ stricmp() {


usage() {
errmsg "Usage: $PROGNAME [-a API-Key] [-c configfile] [-d debuglevel] [-q] [-v] [-f] [nsupdate|getdns]"
errmsg "Usage: $PROGNAME [-a API-Key] [-c configfile] [-d debuglevel] [-q] [-v] [-f] {nsupdate|getdns|setip}"
exit 1
}

Expand Down Expand Up @@ -309,6 +309,8 @@ curl_post() {
}

if [ "$1" = "" ] ;then
usage
elif [ "$1" = setip ] ;then
curl_get "https://api.dynu.com/v2/dns"
domain_list="`get_domain_list`"
dbgmsg "domain list: $domain_list"
Expand Down

0 comments on commit b3a9832

Please sign in to comment.