mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
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>
This commit is contained in:
@@ -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 ) ;
|
||||
|
||||
Reference in New Issue
Block a user