diff options
Diffstat (limited to 'OpenSim/Services')
-rw-r--r-- | OpenSim/Services/GridService/HypergridLinker.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim/Services/GridService/HypergridLinker.cs b/OpenSim/Services/GridService/HypergridLinker.cs index e00025b..ceb2c6e 100644 --- a/OpenSim/Services/GridService/HypergridLinker.cs +++ b/OpenSim/Services/GridService/HypergridLinker.cs | |||
@@ -255,11 +255,8 @@ namespace OpenSim.Services.GridService | |||
255 | regionName = parts[2]; | 255 | regionName = parts[2]; |
256 | } | 256 | } |
257 | 257 | ||
258 | if(port == 80) | 258 | serverURI = "http://"+ host +":"+ port.ToString() + "/"; |
259 | serverURI = "http://"+ host + "/"; | 259 | } |
260 | else | ||
261 | serverURI = "http://"+ host +":"+ port.ToString() + "/"; | ||
262 | } | ||
263 | } | 260 | } |
264 | else | 261 | else |
265 | { | 262 | { |
@@ -301,6 +298,10 @@ namespace OpenSim.Services.GridService | |||
301 | if(!string.IsNullOrEmpty(regionName)) | 298 | if(!string.IsNullOrEmpty(regionName)) |
302 | regionName = regionName.Trim(new char[] { '"', ' ' }); | 299 | regionName = regionName.Trim(new char[] { '"', ' ' }); |
303 | serverURI = uri.AbsoluteUri; | 300 | serverURI = uri.AbsoluteUri; |
301 | if(uri.Port == 80) | ||
302 | serverURI = serverURI.Trim(new char[] { '/', ' ' }) +":80/"; | ||
303 | else if(uri.Port == 443) | ||
304 | serverURI = serverURI.Trim(new char[] { '/', ' ' }) +":443/"; | ||
304 | return true; | 305 | return true; |
305 | } | 306 | } |
306 | 307 | ||