* more url / hg cleanup

This commit is contained in:
Jonathan Freedman
2010-10-11 16:53:00 -04:00
parent 2654ab6300
commit a2167b0f0d
8 changed files with 56 additions and 45 deletions

View File

@@ -115,7 +115,13 @@ namespace OpenSim.Services.Interfaces
/// </summary>
public string ServerURI
{
get { return m_serverURI; }
get {
if ( m_serverURI != string.Empty ) {
return m_serverURI;
} else {
return "http://" + m_externalHostName + ":" + m_httpPort + "/";
}
}
set {
if ( value.EndsWith("/") ) {
m_serverURI = value;
@@ -170,6 +176,7 @@ namespace OpenSim.Services.Interfaces
public GridRegion()
{
m_serverURI = string.Empty;
}
public GridRegion(int regionLocX, int regionLocY, IPEndPoint internalEndPoint, string externalUri)