Skip to content

Commit

Permalink
Displayed IPv4 address
Browse files Browse the repository at this point in the history
  • Loading branch information
gtwy committed Jun 8, 2021
1 parent 4ef1e85 commit d7ae522
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion autoconf-duckdns6.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ else
ipv4addr=$(curl --ipv4 -s "${ipv4service}")
fi

# Display IPv4
printf "\nYour IPv4 has been detected as $ipv4addr\n"

# Connect to DuckDNS
printf "\nNow connecting to DuckDNS and publishing your IPv6 $ipv6addr"
printf "\nfor domain $duckdomain.duckdns.org with token $ducktoken.\n\n"
printf "\nFor domain $duckdomain.duckdns.org with token $ducktoken.\n\n"
curl -s "https://www.duckdns.org/update?domains=$duckdomain&token=$ducktoken&ip=$ipv4addr&ipv6=$ipv6addr"

# Write changes and create cronjob
Expand Down

0 comments on commit d7ae522

Please sign in to comment.