diff options
author | Dr Scofield | 2008-11-07 15:30:38 +0000 |
---|---|---|
committer | Dr Scofield | 2008-11-07 15:30:38 +0000 |
commit | c93c42cd4993496771823da7c5fbcff3e75cd461 (patch) | |
tree | 43d33ec5ca96c4bd87f470482aa78e37d0446fa1 /OpenSim/ApplicationPlugins | |
parent | Change teleport timings (diff) | |
download | opensim-SC_OLD-c93c42cd4993496771823da7c5fbcff3e75cd461.zip opensim-SC_OLD-c93c42cd4993496771823da7c5fbcff3e75cd461.tar.gz opensim-SC_OLD-c93c42cd4993496771823da7c5fbcff3e75cd461.tar.bz2 opensim-SC_OLD-c93c42cd4993496771823da7c5fbcff3e75cd461.tar.xz |
adding region_port field to /admin/rest/regions/UUID/ to convey the
port of the region (used for region planning)
Diffstat (limited to '')
-rw-r--r-- | OpenSim/ApplicationPlugins/Rest/Regions/RegionDetails.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/Regions/RegionDetails.cs b/OpenSim/ApplicationPlugins/Rest/Regions/RegionDetails.cs index d517895..21caf84 100644 --- a/OpenSim/ApplicationPlugins/Rest/Regions/RegionDetails.cs +++ b/OpenSim/ApplicationPlugins/Rest/Regions/RegionDetails.cs | |||
@@ -45,6 +45,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Regions | |||
45 | public string region_owner; | 45 | public string region_owner; |
46 | public string region_owner_id; | 46 | public string region_owner_id; |
47 | public uint region_http_port; | 47 | public uint region_http_port; |
48 | public uint region_port; | ||
48 | public string region_server_uri; | 49 | public string region_server_uri; |
49 | public string region_external_hostname; | 50 | public string region_external_hostname; |
50 | 51 | ||
@@ -66,6 +67,9 @@ namespace OpenSim.ApplicationPlugins.Rest.Regions | |||
66 | region_server_uri = regInfo.ServerURI; | 67 | region_server_uri = regInfo.ServerURI; |
67 | region_external_hostname = regInfo.ExternalHostName; | 68 | region_external_hostname = regInfo.ExternalHostName; |
68 | 69 | ||
70 | Uri uri = new Uri(region_server_uri); | ||
71 | region_port = (uint)uri.Port; | ||
72 | |||
69 | if (!String.IsNullOrEmpty(regInfo.MasterAvatarFirstName)) | 73 | if (!String.IsNullOrEmpty(regInfo.MasterAvatarFirstName)) |
70 | region_owner = String.Format("{0} {1}", regInfo.MasterAvatarFirstName, | 74 | region_owner = String.Format("{0} {1}", regInfo.MasterAvatarFirstName, |
71 | regInfo.MasterAvatarLastName); | 75 | regInfo.MasterAvatarLastName); |