ssdpd: 1.0.3

This commit is contained in:
vdutta 2022-12-21 22:22:11 +05:30
parent fae6a213ac
commit cbbe02096f
3 changed files with 4 additions and 8 deletions

View file

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=ssdpd PKG_NAME:=ssdpd
PKG_VERSION:=1.0.2 PKG_VERSION:=1.0.3
LOCAL_DEV:=0 LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1) ifneq ($(LOCAL_DEV),1)

View file

@ -4,4 +4,4 @@ config ssdpd 'ssdp'
option ipv6_enabled '0' option ipv6_enabled '0'
option socket_path '/var/run/minissdpd.sock' option socket_path '/var/run/minissdpd.sock'
option ttl '2' option ttl '2'
option interface '' option interface 'br-lan'

View file

@ -55,12 +55,8 @@ configure_ssdp()
procd_append_param command -t ${ttl} procd_append_param command -t ${ttl}
fi fi
if [ -z "${interface}" ]; then # If no interface is given defaults for br-lan
iface=$(uci -q get cwmp.cpe.default_lan_interface) procd_append_param command -i ${interface:-br-lan}
interface=$(ifstatus ${iface} | jsonfilter -e @.device)
fi
procd_append_param command -i ${interface}
procd_append_param command -d procd_append_param command -d
} }