aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/ApplicationPlugins/Rest/Regions/RegionDetails.cs4
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);