aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2021-03-10 14:01:38 +0000
committerGlen Barber <gjb@FreeBSD.org>2021-03-24 01:47:57 +0000
commite011488bae5ae688a839e77b77e15f2231a5c148 (patch)
treee4b32b98debc8c7c02e5c8229ff7c0f208b758fc
parentf979a90f4209418a26d858ca97b1497985bda0a7 (diff)
downloadsrc-e011488bae5ae688a839e77b77e15f2231a5c148.tar.gz
src-e011488bae5ae688a839e77b77e15f2231a5c148.zip
MFC: Fix local-unbound setup for some IPv6 deployments.
On behalf of: des PR: 250984 Sponsored by: Rubicon Communications, LLC ("Netgate") Approved by: re (cperciva) (cherry picked from commit e5f02c140bf1e519a95bd6331382e8a2a1b6219f) (cherry picked from commit 34e12e9a177a1d2386a855eb5a497f6f8a680180)
-rwxr-xr-xusr.sbin/unbound/setup/local-unbound-setup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/unbound/setup/local-unbound-setup.sh b/usr.sbin/unbound/setup/local-unbound-setup.sh
index c51145cf2312..3be78339b0ba 100755
--- a/usr.sbin/unbound/setup/local-unbound-setup.sh
+++ b/usr.sbin/unbound/setup/local-unbound-setup.sh
@@ -66,7 +66,7 @@ bkext=$(date "+%Y%m%d.%H%M%S")
RE_octet="([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])"
RE_ipv4="(${RE_octet}(\\.${RE_octet}){3})"
RE_word="([0-9A-Fa-f]{1,4})"
-RE_ipv6="((${RE_word}:){1,}(:|(:${RE_word})*)|::1)"
+RE_ipv6="((${RE_word}:){1,}(:|${RE_word}?(:${RE_word})*)|::1)"
RE_port="([1-9][0-9]{0,3}|[1-5][0-9]{4,4}|6([0-4][0-9]{3}|5([0-4][0-9]{2}|5([0-2][0-9]|3[0-5]))))"
RE_dnsname="([0-9A-Za-z-]{1,}(\\.[0-9A-Za-z-]{1,})*\\.?)"
RE_forward_addr="((${RE_ipv4}|${RE_ipv6})(@${RE_port})?)"