diff --git a/Source/Core/NptUri.cpp b/Source/Core/NptUri.cpp index e4a7c3bd..acc5a426 100644 --- a/Source/Core/NptUri.cpp +++ b/Source/Core/NptUri.cpp @@ -619,7 +619,12 @@ NPT_Url::NPT_Url(const char* scheme, m_Fragment(fragment) { SetScheme(scheme); - + + // Convert local IPv6 addresses back to IPv4 - otherwise PLT_Services don't get their callback + if (m_Host.StartsWith("::ffff:")) { + m_Host = m_Host.SubString(7,m_Host.GetLength()-7); + } + // deal with IPv6 addresses if (m_Host.StartsWith("[") && m_Host.EndsWith("]")) { m_HostIsIpv6Address = true;