Mantis#1541. Thank you kindly, Phrearch for a patch that:
Solves Remote Admin create_region type Casting failure.0.6.0-stable
parent
81af87545e
commit
14a6656948
|
@ -393,8 +393,8 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||||
|
|
||||||
region.RegionID = regionID;
|
region.RegionID = regionID;
|
||||||
region.RegionName = (string) requestData["region_name"];
|
region.RegionName = (string) requestData["region_name"];
|
||||||
region.RegionLocX = Convert.ToUInt32((Int32) requestData["region_x"]);
|
region.RegionLocX = Convert.ToUInt32(requestData["region_x"]);
|
||||||
region.RegionLocY = Convert.ToUInt32((Int32) requestData["region_y"]);
|
region.RegionLocY = Convert.ToUInt32(requestData["region_y"]);
|
||||||
|
|
||||||
// check for collisions: region name, region UUID,
|
// check for collisions: region name, region UUID,
|
||||||
// region location
|
// region location
|
||||||
|
@ -416,7 +416,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||||
region.InternalEndPoint =
|
region.InternalEndPoint =
|
||||||
new IPEndPoint(IPAddress.Parse((string) requestData["listen_ip"]), 0);
|
new IPEndPoint(IPAddress.Parse((string) requestData["listen_ip"]), 0);
|
||||||
|
|
||||||
region.InternalEndPoint.Port = (Int32) requestData["listen_port"];
|
region.InternalEndPoint.Port = Convert.ToInt32(requestData["listen_port"]);
|
||||||
if (0 == region.InternalEndPoint.Port) throw new Exception("listen_port is 0");
|
if (0 == region.InternalEndPoint.Port) throw new Exception("listen_port is 0");
|
||||||
if (m_app.SceneManager.TryGetScene(region.InternalEndPoint, out scene))
|
if (m_app.SceneManager.TryGetScene(region.InternalEndPoint, out scene))
|
||||||
throw new Exception(String.Format("region internal IP {0} and port {1} already in use by region {2}, UUID {3}, <{4},{5}>",
|
throw new Exception(String.Format("region internal IP {0} and port {1} already in use by region {2}, UUID {3}, <{4},{5}>",
|
||||||
|
|
Loading…
Reference in New Issue