try adding ipv6 only mode for ssu

This commit is contained in:
Jeff Becker 2016-06-27 10:24:37 -04:00
parent 4cf4436169
commit a3b08654b4
No known key found for this signature in database
GPG key ID: AB950234D6EA286B
3 changed files with 36 additions and 9 deletions

View file

@ -120,11 +120,14 @@ namespace transport
m_NTCPServer->Start ();
}
if (address->transportStyle == RouterInfo::eTransportSSU && address->host.is_v4 ())
if (address->transportStyle == RouterInfo::eTransportSSU)
{
if (!m_SSUServer)
{
m_SSUServer = new SSUServer (address->port);
{
if (address->host.is_v4())
m_SSUServer = new SSUServer (address->port);
else
m_SSUServer = new SSUServer (address->host, address->port);
LogPrint (eLogInfo, "Transports: Start listening UDP port ", address->port);
m_SSUServer->Start ();
DetectExternalIP ();