mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
unbound: fix local_subnet for IPv6 addresses that contain a port
This prevents a forwarding server named like ::1@5453 from being added to unbound.conf as a forward-host instead of the correct forward-addr. forward-host requires the name to be resolved, which is impossible in the absence of another nameserver. Thus, forwarding-only configurations referencing only the IPv6 loopback address with a port number were broken. Signed-off-by: Mark Mentovai <mark@mentovai.com>
This commit is contained in:
committed by
Tianling Shen
parent
6e33a73f0c
commit
33581043d2
@@ -164,7 +164,7 @@ local_subnet() {
|
||||
# local subnet 2nd place is limited to one digit to improve the filter
|
||||
case "$1" in
|
||||
127"."[0-9]"."[0-9]*) echo "ok" ;;
|
||||
::1) echo "ok" ;;
|
||||
::1|::1@*|::1#*) echo "ok" ;;
|
||||
*) echo "not" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user