diff options
author | Oren Hurvitz | 2014-04-09 08:03:25 +0300 |
---|---|---|
committer | Oren Hurvitz | 2014-04-09 09:22:20 +0100 |
commit | 06e0528d0b9929cbd8d2b360b0baa00288340d13 (patch) | |
tree | 0ffd33e5eda96badff712bdd78794ce6debbb392 /OpenSim/Services/Interfaces/IGridService.cs | |
parent | Log when the presence service logs-out all the users in a region (diff) | |
download | opensim-SC-06e0528d0b9929cbd8d2b360b0baa00288340d13.zip opensim-SC-06e0528d0b9929cbd8d2b360b0baa00288340d13.tar.gz opensim-SC-06e0528d0b9929cbd8d2b360b0baa00288340d13.tar.bz2 opensim-SC-06e0528d0b9929cbd8d2b360b0baa00288340d13.tar.xz |
In teleports, pass the source region to the destination (similar to an HTTP referrer)
Diffstat (limited to 'OpenSim/Services/Interfaces/IGridService.cs')
-rw-r--r-- | OpenSim/Services/Interfaces/IGridService.cs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/OpenSim/Services/Interfaces/IGridService.cs b/OpenSim/Services/Interfaces/IGridService.cs index 8e6279e..bbf95ad 100644 --- a/OpenSim/Services/Interfaces/IGridService.cs +++ b/OpenSim/Services/Interfaces/IGridService.cs | |||
@@ -142,7 +142,7 @@ namespace OpenSim.Services.Interfaces | |||
142 | public string ServerURI | 142 | public string ServerURI |
143 | { | 143 | { |
144 | get { | 144 | get { |
145 | if ( m_serverURI != string.Empty ) { | 145 | if (!String.IsNullOrEmpty(m_serverURI)) { |
146 | return m_serverURI; | 146 | return m_serverURI; |
147 | } else { | 147 | } else { |
148 | if (m_httpPort == 0) | 148 | if (m_httpPort == 0) |
@@ -152,7 +152,7 @@ namespace OpenSim.Services.Interfaces | |||
152 | } | 152 | } |
153 | } | 153 | } |
154 | set { | 154 | set { |
155 | if ( value.EndsWith("/") ) { | 155 | if (value.EndsWith("/")) { |
156 | m_serverURI = value; | 156 | m_serverURI = value; |
157 | } else { | 157 | } else { |
158 | m_serverURI = value + '/'; | 158 | m_serverURI = value + '/'; |
@@ -161,6 +161,16 @@ namespace OpenSim.Services.Interfaces | |||
161 | } | 161 | } |
162 | protected string m_serverURI; | 162 | protected string m_serverURI; |
163 | 163 | ||
164 | /// <summary> | ||
165 | /// Provides direct access to the 'm_serverURI' field, without returning a generated URL if m_serverURI is missing. | ||
166 | /// </summary> | ||
167 | public string RawServerURI | ||
168 | { | ||
169 | get { return m_serverURI; } | ||
170 | set { m_serverURI = value; } | ||
171 | } | ||
172 | |||
173 | |||
164 | public string RegionName | 174 | public string RegionName |
165 | { | 175 | { |
166 | get { return m_regionName; } | 176 | get { return m_regionName; } |