mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
In teleports, pass the source region to the destination (similar to an HTTP referrer)
This commit is contained in:
@@ -142,7 +142,7 @@ namespace OpenSim.Services.Interfaces
|
||||
public string ServerURI
|
||||
{
|
||||
get {
|
||||
if ( m_serverURI != string.Empty ) {
|
||||
if (!String.IsNullOrEmpty(m_serverURI)) {
|
||||
return m_serverURI;
|
||||
} else {
|
||||
if (m_httpPort == 0)
|
||||
@@ -152,7 +152,7 @@ namespace OpenSim.Services.Interfaces
|
||||
}
|
||||
}
|
||||
set {
|
||||
if ( value.EndsWith("/") ) {
|
||||
if (value.EndsWith("/")) {
|
||||
m_serverURI = value;
|
||||
} else {
|
||||
m_serverURI = value + '/';
|
||||
@@ -161,6 +161,16 @@ namespace OpenSim.Services.Interfaces
|
||||
}
|
||||
protected string m_serverURI;
|
||||
|
||||
/// <summary>
|
||||
/// Provides direct access to the 'm_serverURI' field, without returning a generated URL if m_serverURI is missing.
|
||||
/// </summary>
|
||||
public string RawServerURI
|
||||
{
|
||||
get { return m_serverURI; }
|
||||
set { m_serverURI = value; }
|
||||
}
|
||||
|
||||
|
||||
public string RegionName
|
||||
{
|
||||
get { return m_regionName; }
|
||||
|
||||
Reference in New Issue
Block a user