git: c7fa58420aa2 - stable/12 - Fix local-unbound setup for some IPv6 deployments.

Kristof Provost kp at FreeBSD.org
Tue Jul 20 14:50:32 UTC 2021


The branch stable/12 has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=c7fa58420aa2b9e0d172717f7affe3fa2d11d15a

commit c7fa58420aa2b9e0d172717f7affe3fa2d11d15a
Author:     Dag-Erling Smørgrav <des at FreeBSD.org>
AuthorDate: 2021-03-10 14:01:38 +0000
Commit:     Kristof Provost <kp at FreeBSD.org>
CommitDate: 2021-07-20 13:15:21 +0000

    Fix local-unbound setup for some IPv6 deployments.
    
    PR:             250984
    MFC after:      1 week
---
 usr.sbin/unbound/setup/local-unbound-setup.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/unbound/setup/local-unbound-setup.sh b/usr.sbin/unbound/setup/local-unbound-setup.sh
index 0e75112dd99b..0a3b80b18e60 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})?)"


More information about the dev-commits-src-all mailing list