mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
Unbound: bug fix odhcpd and add auto adblock
Bug fix dhcp4_slaac6 option was adding to all IP6 routes. Filtering was added to this process to only include addresses served from "this dhcp interface." adblock 2.3.0 file output is now detected and automatically integrated into Unbound local-zones. adblock deposites its block site zone-files into /var/lib/unbound. If this is not desired, then disable adblock or reconfigure to avoid Unbound. Signed-off-by: Eric Luehrsen <ericluehrsen@hotmail.com>
This commit is contained in:
@@ -74,7 +74,8 @@
|
||||
|
||||
|
||||
while ( ( cmd | getline adr ) > 0 ) {
|
||||
if ( substr( adr, 1, 5 ) <= "fd00:" ) {
|
||||
if (( substr( adr, 1, 5 ) <= "fd00:" ) \
|
||||
&& ( index( adr, "via" ) == 0 )) {
|
||||
# GA or ULA routed addresses only (not LL or MC)
|
||||
sub( /\/.*/, "", adr ) ;
|
||||
adr = ( adr slaac ) ;
|
||||
|
||||
Reference in New Issue
Block a user