Ticket #4712: upnp_loopback_warning.diff

File upnp_loopback_warning.diff, 674 bytes (added by Roo <roo.watt@…>, 13 years ago)
  • programs/mythbackend/mediaserver.cpp

     
    101101
    102102    m_pHttpServer->RegisterExtension( new MythXML( pMythDevice ));
    103103
    104     if (sIP == "localhost" || sIP == "127.0.0.1")
     104    if (sIP == "localhost" || sIP.startsWith("127.0.0."))
    105105    {
    106         VERBOSE(VB_IMPORTANT, "MediaServer:: Bad BackendServerIP Address - "
     106        VERBOSE(VB_IMPORTANT, "MediaServer:: Loopback Address Specified - "
    107107                              + sIP + ". Disabling UPnP");
    108108        return;
    109109    }