Parcourir la source

igmpproxy: do not attempt to ifstatus error messages as json

Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 43660
Felix Fietkau il y a 11 ans
Parent
commit
8afce572b7
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      package/network/services/igmpproxy/files/igmpproxy.init

+ 4 - 1
package/network/services/igmpproxy/files/igmpproxy.init

@@ -39,7 +39,10 @@ igmp_add_phyint() {
 	config_get direction $1 direction
 	config_get altnets $1 altnet
 
-	json_load "$(ifstatus $network)"
+	local status="$(ubus -S call "network.interface.$network" status)"
+	[ -n "$status" ] || return
+
+	json_load "$status"
 	json_get_var device l3_device
 	json_get_var up up