From 80429e0a5b49c20768d7664ed92724f96c4d9711 Mon Sep 17 00:00:00 2001 From: Eric Luehrsen Date: Mon, 29 Apr 2019 22:51:55 -0400 Subject: [PATCH] unbound: fix local dns synthesis corner cases Signed-off-by: Eric Luehrsen --- net/unbound/Makefile | 2 +- net/unbound/files/odhcpd.awk | 1 + net/unbound/files/unbound.sh | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/net/unbound/Makefile b/net/unbound/Makefile index 0c35e45d9b..5275505359 100644 --- a/net/unbound/Makefile +++ b/net/unbound/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=unbound PKG_VERSION:=1.9.1 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_LICENSE:=BSD-3-Clause PKG_LICENSE_FILES:=LICENSE diff --git a/net/unbound/files/odhcpd.awk b/net/unbound/files/odhcpd.awk index 3c53788700..8c303029e4 100644 --- a/net/unbound/files/odhcpd.awk +++ b/net/unbound/files/odhcpd.awk @@ -85,6 +85,7 @@ while ( ( cmd | getline adr ) > 0 ) { if (( substr( adr, 1, 5 ) <= "fdff:" ) \ + && ( index( adr, "::/" ) != 0 ) \ && ( index( adr, "anycast" ) == 0 ) \ && ( index( adr, "via" ) == 0 )) { # GA or ULA routed addresses only (not LL or MC) diff --git a/net/unbound/files/unbound.sh b/net/unbound/files/unbound.sh index 529b689f94..e03d93c647 100644 --- a/net/unbound/files/unbound.sh +++ b/net/unbound/files/unbound.sh @@ -113,7 +113,7 @@ create_interface_dns() { # Create local-data: references for this hosts interfaces (router). config_get logint "$cfg" interface config_get_bool ignore "$cfg" ignore 0 - network_get_device ifname "$cfg" + network_get_device ifname "$logint" ifdashname="${ifname//./-}" ipcommand="ip -o address show $ifname" -- 2.30.2