mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-07 03:29:36 +00:00
dnsmasq: drop --interface and --except-interface options when the interface cannot be found
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
eadf5fb7f8
commit
b2ddfbc1c7
@ -119,12 +119,12 @@ append_ipset() {
|
||||
}
|
||||
|
||||
append_interface() {
|
||||
network_get_device ifname "$1"
|
||||
network_get_device ifname "$1" || return
|
||||
xappend "--interface=$ifname"
|
||||
}
|
||||
|
||||
append_notinterface() {
|
||||
network_get_device ifname "$1"
|
||||
network_get_device ifname "$1" || return
|
||||
xappend "--except-interface=$ifname"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user