adding region_port field to /admin/rest/regions/UUID/ to convey the
port of the region (used for region planning)0.6.0-stable
parent
506a3aa215
commit
c93c42cd49
|
@ -45,6 +45,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Regions
|
||||||
public string region_owner;
|
public string region_owner;
|
||||||
public string region_owner_id;
|
public string region_owner_id;
|
||||||
public uint region_http_port;
|
public uint region_http_port;
|
||||||
|
public uint region_port;
|
||||||
public string region_server_uri;
|
public string region_server_uri;
|
||||||
public string region_external_hostname;
|
public string region_external_hostname;
|
||||||
|
|
||||||
|
@ -66,6 +67,9 @@ namespace OpenSim.ApplicationPlugins.Rest.Regions
|
||||||
region_server_uri = regInfo.ServerURI;
|
region_server_uri = regInfo.ServerURI;
|
||||||
region_external_hostname = regInfo.ExternalHostName;
|
region_external_hostname = regInfo.ExternalHostName;
|
||||||
|
|
||||||
|
Uri uri = new Uri(region_server_uri);
|
||||||
|
region_port = (uint)uri.Port;
|
||||||
|
|
||||||
if (!String.IsNullOrEmpty(regInfo.MasterAvatarFirstName))
|
if (!String.IsNullOrEmpty(regInfo.MasterAvatarFirstName))
|
||||||
region_owner = String.Format("{0} {1}", regInfo.MasterAvatarFirstName,
|
region_owner = String.Format("{0} {1}", regInfo.MasterAvatarFirstName,
|
||||||
regInfo.MasterAvatarLastName);
|
regInfo.MasterAvatarLastName);
|
||||||
|
|
Loading…
Reference in New Issue