* Only ignore bad source port SSDP requests if the strict DLNA flag is set.

This commit is contained in:
Justin Maggard 2011-06-23 18:12:39 +00:00
parent ab2533ea97
commit f6e3e0e8c1

View File

@ -603,7 +603,7 @@ ProcessSSDPRequest(int s, unsigned short port)
/*DPRINTF(E_INFO, L_SSDP, "SSDP M-SEARCH packet received from %s:%d\n",
inet_ntoa(sendername.sin_addr),
ntohs(sendername.sin_port) );*/
if( ntohs(sendername.sin_port) <= 1024 || ntohs(sendername.sin_port) == 1900 )
if( GETFLAG(DLNA_STRICT_MASK) && (ntohs(sendername.sin_port) <= 1024 || ntohs(sendername.sin_port) == 1900) )
{
DPRINTF(E_INFO, L_SSDP, "WARNING: Ignoring invalid SSDP M-SEARCH from %s [bad source port %d]\n",
inet_ntoa(sendername.sin_addr), ntohs(sendername.sin_port));