Skip to content

Commit

Permalink
Update autoconf-duckdns6.sh
Browse files Browse the repository at this point in the history
Changes in line 15 to make it more general regarding the filtering of local ipv6 addresses on the text file to extract the external ip.
  • Loading branch information
FernandoMarques-Santos committed May 1, 2023
1 parent 9c4f2eb commit 72e3d32
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 72e3d32

Please sign in to comment.