Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Source/Core/NptUri.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down