Browse Source

dnsmasq: drop --interface and --except-interface options when the interface cannot be found

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau 9 years ago
parent
commit
b2ddfbc1c7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      package/network/services/dnsmasq/files/dnsmasq.init

+ 2 - 2
package/network/services/dnsmasq/files/dnsmasq.init

@@ -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"
 }