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,7 +137,10 @@ namespace OpenSim.Services.Interfaces
if ( m_serverURI != string.Empty ) {
return m_serverURI;
} else {
return "http://" + m_externalHostName + ":" + m_httpPort + "/";
if (m_httpPort == 0)
return "http://" + m_externalHostName + "/";
else
return "http://" + m_externalHostName + ":" + m_httpPort + "/";
}
}
set {