Do not add a port zero to end of the hypergrid gateway host name.

If the port is specified it is added but a ":0" is not added if the port is zero.
This enables the hypergrid address short form "hypergridGateway:regionName"
which is handled by the parser but failed because of this zero port addition.
varregion
Robert Adams 2013-08-28 16:33:01 -07:00
parent 0882cf0fc3
commit aa521fb385
1 changed files with 4 additions and 1 deletions

View File

@ -137,6 +137,9 @@ namespace OpenSim.Services.Interfaces
if ( m_serverURI != string.Empty ) { if ( m_serverURI != string.Empty ) {
return m_serverURI; return m_serverURI;
} else { } else {
if (m_httpPort == 0)
return "http://" + m_externalHostName + "/";
else
return "http://" + m_externalHostName + ":" + m_httpPort + "/"; return "http://" + m_externalHostName + ":" + m_httpPort + "/";
} }
} }