adding region_port field to /admin/rest/regions/UUID/ to convey the

port of the region (used for region planning)
0.6.0-stable
Dr Scofield 2008-11-07 15:30:38 +00:00
parent 506a3aa215
commit c93c42cd49
1 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Regions
public string region_owner;
public string region_owner_id;
public uint region_http_port;
public uint region_port;
public string region_server_uri;
public string region_external_hostname;
@ -66,6 +67,9 @@ namespace OpenSim.ApplicationPlugins.Rest.Regions
region_server_uri = regInfo.ServerURI;
region_external_hostname = regInfo.ExternalHostName;
Uri uri = new Uri(region_server_uri);
region_port = (uint)uri.Port;
if (!String.IsNullOrEmpty(regInfo.MasterAvatarFirstName))
region_owner = String.Format("{0} {1}", regInfo.MasterAvatarFirstName,
regInfo.MasterAvatarLastName);