From 36c4c0ded4cc50f03f22b5a887858b4edd1e61aa Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 19 Feb 2016 14:20:45 +0100 Subject: [PATCH] do not use multicast global scope --- miniupnpd/minissdp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/miniupnpd/minissdp.c b/miniupnpd/minissdp.c index 77320d4..1d19144 100644 --- a/miniupnpd/minissdp.c +++ b/miniupnpd/minissdp.c @@ -630,10 +630,14 @@ SendSSDPNotifies(int s, const char * host, unsigned short http_port, { #ifdef ENABLE_IPV6 struct sockaddr_storage sockname; + /* UDA 1.1 AnnexA and UDA 2.0 only allow/define the use of + * Link-Local and Site-Local multicast scopes */ static struct { const char * p1, * p2; } const mcast_addrs[] = { { LL_SSDP_MCAST_ADDR, "[" LL_SSDP_MCAST_ADDR "]" }, /* Link Local */ { SL_SSDP_MCAST_ADDR, "[" SL_SSDP_MCAST_ADDR "]" }, /* Site Local */ +#ifndef UPNP_STRICT { GL_SSDP_MCAST_ADDR, "[" GL_SSDP_MCAST_ADDR "]" }, /* Global */ +#endif /* ! UPNP_STRICT */ { NULL, NULL } }; int j; #else /* ENABLE_IPV6 */