diff options
-rw-r--r-- | OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs index 3f6869e..767b736 100644 --- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs +++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | |||
@@ -393,8 +393,8 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
393 | 393 | ||
394 | region.RegionID = regionID; | 394 | region.RegionID = regionID; |
395 | region.RegionName = (string) requestData["region_name"]; | 395 | region.RegionName = (string) requestData["region_name"]; |
396 | region.RegionLocX = Convert.ToUInt32((Int32) requestData["region_x"]); | 396 | region.RegionLocX = Convert.ToUInt32(requestData["region_x"]); |
397 | region.RegionLocY = Convert.ToUInt32((Int32) requestData["region_y"]); | 397 | region.RegionLocY = Convert.ToUInt32(requestData["region_y"]); |
398 | 398 | ||
399 | // check for collisions: region name, region UUID, | 399 | // check for collisions: region name, region UUID, |
400 | // region location | 400 | // region location |
@@ -416,7 +416,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
416 | region.InternalEndPoint = | 416 | region.InternalEndPoint = |
417 | new IPEndPoint(IPAddress.Parse((string) requestData["listen_ip"]), 0); | 417 | new IPEndPoint(IPAddress.Parse((string) requestData["listen_ip"]), 0); |
418 | 418 | ||
419 | region.InternalEndPoint.Port = (Int32) requestData["listen_port"]; | 419 | region.InternalEndPoint.Port = Convert.ToInt32(requestData["listen_port"]); |
420 | if (0 == region.InternalEndPoint.Port) throw new Exception("listen_port is 0"); | 420 | if (0 == region.InternalEndPoint.Port) throw new Exception("listen_port is 0"); |
421 | if (m_app.SceneManager.TryGetScene(region.InternalEndPoint, out scene)) | 421 | if (m_app.SceneManager.TryGetScene(region.InternalEndPoint, out scene)) |
422 | throw new Exception(String.Format("region internal IP {0} and port {1} already in use by region {2}, UUID {3}, <{4},{5}>", | 422 | throw new Exception(String.Format("region internal IP {0} and port {1} already in use by region {2}, UUID {3}, <{4},{5}>", |