aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/GridService/HypergridLinker.cs
diff options
context:
space:
mode:
authorUbitUmarov2016-12-14 13:35:53 +0000
committerUbitUmarov2016-12-14 13:35:53 +0000
commit18a292ad02e590619760a71aeb1514e6916b257f (patch)
tree584faa43265cc20ee36d92b2bc14cb1c55435ef0 /OpenSim/Services/GridService/HypergridLinker.cs
parentMerge branch 'master' into httptests (diff)
parentfix: check for region_handle before region_id, viewers are so funny.. (diff)
downloadopensim-SC-18a292ad02e590619760a71aeb1514e6916b257f.zip
opensim-SC-18a292ad02e590619760a71aeb1514e6916b257f.tar.gz
opensim-SC-18a292ad02e590619760a71aeb1514e6916b257f.tar.bz2
opensim-SC-18a292ad02e590619760a71aeb1514e6916b257f.tar.xz
Merge branch 'master' into httptests
Diffstat (limited to '')
-rw-r--r--OpenSim/Services/GridService/HypergridLinker.cs11
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