Skip to content

Commit

Permalink
Merge pull request #9 from FernandoMarques-Santos/patch-1
Browse files Browse the repository at this point in the history
Fixes IPv6 issue
  • Loading branch information
gtwy committed May 1, 2023
2 parents 9c4f2eb + 72e3d32 commit c927dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoconf-duckdns6.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ duck6conf="$HOME"/.duck6.conf

# Probe IPv4 and IPv6 addresses
read -r _ _ _ _ iface _ ipv4local <<<"$(ip r g 8.8.8.8 | head -1)"
ipv6addr=$(ip addr show dev "$iface" | sed -e's/^.*inet6 \([^ ]*\)\/.*$/\1/;t;d' | grep -v '^fd00' | grep -v '^fe80' | head -1)
ipv6addr=$(ip addr show dev "$iface" | sed -e's/^.*inet6 \([^ ]*\)\/.*$/\1/;t;d' | grep -v '^fd' | grep -v '^fe80' | head -1)

# Does .duck6.conf exist?
if [[ -f "$duck6conf" ]] ; then
Expand Down

0 comments on commit c927dab

Please sign in to comment.