diff options
author | Adam Frisby | 2009-05-23 06:05:20 +0000 |
---|---|---|
committer | Adam Frisby | 2009-05-23 06:05:20 +0000 |
commit | 31baeef469d72a9dc13cf4f56392b9f740f71cba (patch) | |
tree | ac50806ced72c5b296645bf061a3d9176a41075c /OpenSim/Grid/GridServer.Modules/GridXmlRpcModule.cs | |
parent | * Breaks OpenSim.. err I mean.. adds NAT translation support to EnableSimulat... (diff) | |
download | opensim-SC_OLD-31baeef469d72a9dc13cf4f56392b9f740f71cba.zip opensim-SC_OLD-31baeef469d72a9dc13cf4f56392b9f740f71cba.tar.gz opensim-SC_OLD-31baeef469d72a9dc13cf4f56392b9f740f71cba.tar.bz2 opensim-SC_OLD-31baeef469d72a9dc13cf4f56392b9f740f71cba.tar.xz |
* Pipes requestors IP address through all XmlRpcRequest delegates. This is needed to be able to 'NAT-wrap' the login sequence.
* If you have something using XmlRpc that isn't in core, change your method signature from:
(XmlRpcRequest request)
to:
(XmlRpcRequest request, IPEndPoint remoteClient)
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Grid/GridServer.Modules/GridXmlRpcModule.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim/Grid/GridServer.Modules/GridXmlRpcModule.cs b/OpenSim/Grid/GridServer.Modules/GridXmlRpcModule.cs index 14a328f..59fadce 100644 --- a/OpenSim/Grid/GridServer.Modules/GridXmlRpcModule.cs +++ b/OpenSim/Grid/GridServer.Modules/GridXmlRpcModule.cs | |||
@@ -29,6 +29,7 @@ using System; | |||
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.IO; | 31 | using System.IO; |
32 | using System.Net; | ||
32 | using System.Reflection; | 33 | using System.Reflection; |
33 | using System.Xml; | 34 | using System.Xml; |
34 | using log4net; | 35 | using log4net; |
@@ -246,7 +247,7 @@ namespace OpenSim.Grid.GridServer.Modules | |||
246 | /// </summary> | 247 | /// </summary> |
247 | /// <param name="request">The XML RPC Request</param> | 248 | /// <param name="request">The XML RPC Request</param> |
248 | /// <returns>Startup parameters</returns> | 249 | /// <returns>Startup parameters</returns> |
249 | public XmlRpcResponse XmlRpcSimulatorLoginMethod(XmlRpcRequest request) | 250 | public XmlRpcResponse XmlRpcSimulatorLoginMethod(XmlRpcRequest request, IPEndPoint remoteClient) |
250 | { | 251 | { |
251 | RegionProfileData sim; | 252 | RegionProfileData sim; |
252 | RegionProfileData existingSim; | 253 | RegionProfileData existingSim; |
@@ -575,7 +576,7 @@ namespace OpenSim.Grid.GridServer.Modules | |||
575 | /// <returns></returns> | 576 | /// <returns></returns> |
576 | /// <param name="request">The XMLRPC Request</param> | 577 | /// <param name="request">The XMLRPC Request</param> |
577 | /// <returns>Processing parameters</returns> | 578 | /// <returns>Processing parameters</returns> |
578 | public XmlRpcResponse XmlRpcDeleteRegionMethod(XmlRpcRequest request) | 579 | public XmlRpcResponse XmlRpcDeleteRegionMethod(XmlRpcRequest request, IPEndPoint remoteClient) |
579 | { | 580 | { |
580 | XmlRpcResponse response = new XmlRpcResponse(); | 581 | XmlRpcResponse response = new XmlRpcResponse(); |
581 | Hashtable responseData = new Hashtable(); | 582 | Hashtable responseData = new Hashtable(); |
@@ -631,7 +632,7 @@ namespace OpenSim.Grid.GridServer.Modules | |||
631 | /// </summary> | 632 | /// </summary> |
632 | /// <param name="request"></param> | 633 | /// <param name="request"></param> |
633 | /// <returns></returns> | 634 | /// <returns></returns> |
634 | public XmlRpcResponse XmlRpcSimulatorDataRequestMethod(XmlRpcRequest request) | 635 | public XmlRpcResponse XmlRpcSimulatorDataRequestMethod(XmlRpcRequest request, IPEndPoint remoteClient) |
635 | { | 636 | { |
636 | Hashtable requestData = (Hashtable)request.Params[0]; | 637 | Hashtable requestData = (Hashtable)request.Params[0]; |
637 | Hashtable responseData = new Hashtable(); | 638 | Hashtable responseData = new Hashtable(); |
@@ -696,7 +697,7 @@ namespace OpenSim.Grid.GridServer.Modules | |||
696 | return response; | 697 | return response; |
697 | } | 698 | } |
698 | 699 | ||
699 | public XmlRpcResponse XmlRpcMapBlockMethod(XmlRpcRequest request) | 700 | public XmlRpcResponse XmlRpcMapBlockMethod(XmlRpcRequest request, IPEndPoint remoteClient) |
700 | { | 701 | { |
701 | int xmin = 980, ymin = 980, xmax = 1020, ymax = 1020; | 702 | int xmin = 980, ymin = 980, xmax = 1020, ymax = 1020; |
702 | 703 | ||
@@ -806,7 +807,7 @@ namespace OpenSim.Grid.GridServer.Modules | |||
806 | /// </summary> | 807 | /// </summary> |
807 | /// <param name="request"></param> | 808 | /// <param name="request"></param> |
808 | /// <returns></returns> | 809 | /// <returns></returns> |
809 | public XmlRpcResponse XmlRpcSearchForRegionMethod(XmlRpcRequest request) | 810 | public XmlRpcResponse XmlRpcSearchForRegionMethod(XmlRpcRequest request, IPEndPoint remoteClient) |
810 | { | 811 | { |
811 | Hashtable requestData = (Hashtable)request.Params[0]; | 812 | Hashtable requestData = (Hashtable)request.Params[0]; |
812 | 813 | ||