aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Interfaces/IGridService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services/Interfaces/IGridService.cs')
-rw-r--r--OpenSim/Services/Interfaces/IGridService.cs14
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; }