Browse Source

unbound: fix crash when using odhcpd w/o dnsmasq

When using the configuration under "Unbound and odhcpd" in the package's
README.md, the scripts generated a malformed config file for unbound, due
to an "ip route" command giving extra output lines with the string
"anycast" where the awk script expects an address. These are now filtered.

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
lilik-openwrt-22.03
Daniel Gimpelevich 7 years ago
parent
commit
379e28880b
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      net/unbound/Makefile
  2. +1
    -0
      net/unbound/files/odhcpd.awk

+ 1
- 1
net/unbound/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=unbound
PKG_VERSION:=1.6.7
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE


+ 1
- 0
net/unbound/files/odhcpd.awk View File

@ -87,6 +87,7 @@
while ( ( cmd | getline adr ) > 0 ) {
if (( substr( adr, 1, 5 ) <= "fd00:" ) \
&& ( index( adr, "anycast" ) == 0 ) \
&& ( index( adr, "via" ) == 0 )) {
# GA or ULA routed addresses only (not LL or MC)
sub( /\/.*/, "", adr ) ;


Loading…
Cancel
Save