Skip to content

Commit

Permalink
Modify the bug of obtaining local IPv6 (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
flyflas authored Feb 14, 2024
1 parent 3a99f14 commit 3e41f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion box/scripts/box.iptables
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ intranet6=(
fe80::/10
ff00::/8
)
intranet6+=($(ip -6 address | busybox awk '/inet6/ && !/::1/ && !/fe80/ {print $2}'))
intranet6+=($(ip -6 a | busybox awk '/inet6/ {print $2}' | busybox grep -vE "^fe80|^::1|^fd00"))

forward() {
${iptables} $1 FORWARD -o "${tun_device}" -j ACCEPT
Expand Down

0 comments on commit 3e41f82

Please sign in to comment.