Skip to content

Commit

Permalink
Fix UPNP detection of backends to ignore link-local IPV6 addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
bennettpeter committed Feb 6, 2017
1 parent f5bb7fd commit ef7e594
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mythtv/libs/libmythupnp/ssdp.cpp
Expand Up @@ -624,6 +624,10 @@ bool SSDP::ProcessSearchResponse( const QStringMap &headers )
if (nPos < 0)
return false;

// Ignore link local ip addresses
if (sDescURL.startsWith("http://[fe80::",Qt::CaseInsensitive))
return false;

if ((nPos = sCache.indexOf("=", nPos)) < 0)
return false;

Expand Down

0 comments on commit ef7e594

Please sign in to comment.