Skip to content

Commit

Permalink
dnsmasq: Add EDNS0 Upstream support
Browse files Browse the repository at this point in the history
Simplify add_subnet handling
Signed-off-by: Carsten Schuette <[email protected]>
  • Loading branch information
schuettecarsten committed Jul 17, 2024
1 parent 1c2eb37 commit 28ff4a9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions package/network/services/dnsmasq/files/dnsmasq.init
Original file line number Diff line number Diff line change
Expand Up @@ -981,11 +981,7 @@ dnsmasq_start()
fi
append_bool "$cfg" strip_mac "--strip-mac"
config_get add_subnet "$cfg" add_subnet
if [ "$add_subnet" = "0,0" ]; then
xappend "--add-subnet"
elif [ -n "$add_subnet" ]; then
xappend "--add-subnet=$add_subnet"
fi
[ -n "$add_subnet" ] && xappend "--add-subnet=$add_subnet"
append_bool "$cfg" strip_subnet "--strip-subnet"

append_bool "$cfg" filter_aaaa "--filter-AAAA"
Expand Down

0 comments on commit 28ff4a9

Please sign in to comment.