parent
2b6fa0839f
commit
0366cd0ba0
|
@ -237,7 +237,7 @@ OpenAndConfSSDPReceiveSocket(int ipv6)
|
||||||
#if defined(SO_BINDTODEVICE) && !defined(MULTIPLE_EXTERNAL_IP)
|
#if defined(SO_BINDTODEVICE) && !defined(MULTIPLE_EXTERNAL_IP)
|
||||||
/* One and only one LAN interface */
|
/* One and only one LAN interface */
|
||||||
if(lan_addrs.lh_first != NULL && lan_addrs.lh_first->list.le_next == NULL
|
if(lan_addrs.lh_first != NULL && lan_addrs.lh_first->list.le_next == NULL
|
||||||
&& strlen(lan_addrs.lh_first->ifname) > 0)
|
&& lan_addrs.lh_first->ifname[0] != '\0')
|
||||||
{
|
{
|
||||||
if(setsockopt(s, SOL_SOCKET, SO_BINDTODEVICE,
|
if(setsockopt(s, SOL_SOCKET, SO_BINDTODEVICE,
|
||||||
lan_addrs.lh_first->ifname,
|
lan_addrs.lh_first->ifname,
|
||||||
|
|
Loading…
Reference in New Issue