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/Region/ReplaceableModules/MoneyModule | |
parent | * Breaks OpenSim.. err I mean.. adds NAT translation support to EnableSimulat... (diff) | |
download | opensim-SC-31baeef469d72a9dc13cf4f56392b9f740f71cba.zip opensim-SC-31baeef469d72a9dc13cf4f56392b9f740f71cba.tar.gz opensim-SC-31baeef469d72a9dc13cf4f56392b9f740f71cba.tar.bz2 opensim-SC-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 'OpenSim/Region/ReplaceableModules/MoneyModule')
-rw-r--r-- | OpenSim/Region/ReplaceableModules/MoneyModule/SampleMoneyModule.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim/Region/ReplaceableModules/MoneyModule/SampleMoneyModule.cs b/OpenSim/Region/ReplaceableModules/MoneyModule/SampleMoneyModule.cs index 62d8f4b..8462103 100644 --- a/OpenSim/Region/ReplaceableModules/MoneyModule/SampleMoneyModule.cs +++ b/OpenSim/Region/ReplaceableModules/MoneyModule/SampleMoneyModule.cs | |||
@@ -28,6 +28,7 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Net; | ||
31 | using System.Reflection; | 32 | using System.Reflection; |
32 | using log4net; | 33 | using log4net; |
33 | using Nini.Config; | 34 | using Nini.Config; |
@@ -419,7 +420,7 @@ namespace OpenSim.Region.ReplaceableModules.MoneyModule | |||
419 | /// <summary> | 420 | /// <summary> |
420 | /// XMLRPC handler to send alert message and sound to client | 421 | /// XMLRPC handler to send alert message and sound to client |
421 | /// </summary> | 422 | /// </summary> |
422 | public XmlRpcResponse UserAlert(XmlRpcRequest request) | 423 | public XmlRpcResponse UserAlert(XmlRpcRequest request, IPEndPoint remoteClient) |
423 | { | 424 | { |
424 | XmlRpcResponse ret = new XmlRpcResponse(); | 425 | XmlRpcResponse ret = new XmlRpcResponse(); |
425 | Hashtable retparam = new Hashtable(); | 426 | Hashtable retparam = new Hashtable(); |
@@ -469,7 +470,7 @@ namespace OpenSim.Region.ReplaceableModules.MoneyModule | |||
469 | 470 | ||
470 | # region Standalone box enablers only | 471 | # region Standalone box enablers only |
471 | 472 | ||
472 | public XmlRpcResponse quote_func(XmlRpcRequest request) | 473 | public XmlRpcResponse quote_func(XmlRpcRequest request, IPEndPoint remoteClient) |
473 | { | 474 | { |
474 | // Hashtable requestData = (Hashtable) request.Params[0]; | 475 | // Hashtable requestData = (Hashtable) request.Params[0]; |
475 | // UUID agentId = UUID.Zero; | 476 | // UUID agentId = UUID.Zero; |
@@ -493,7 +494,7 @@ namespace OpenSim.Region.ReplaceableModules.MoneyModule | |||
493 | 494 | ||
494 | } | 495 | } |
495 | 496 | ||
496 | public XmlRpcResponse buy_func(XmlRpcRequest request) | 497 | public XmlRpcResponse buy_func(XmlRpcRequest request, IPEndPoint remoteClient) |
497 | { | 498 | { |
498 | // Hashtable requestData = (Hashtable) request.Params[0]; | 499 | // Hashtable requestData = (Hashtable) request.Params[0]; |
499 | // UUID agentId = UUID.Zero; | 500 | // UUID agentId = UUID.Zero; |
@@ -506,7 +507,7 @@ namespace OpenSim.Region.ReplaceableModules.MoneyModule | |||
506 | return returnval; | 507 | return returnval; |
507 | } | 508 | } |
508 | 509 | ||
509 | public XmlRpcResponse preflightBuyLandPrep_func(XmlRpcRequest request) | 510 | public XmlRpcResponse preflightBuyLandPrep_func(XmlRpcRequest request, IPEndPoint remoteClient) |
510 | { | 511 | { |
511 | XmlRpcResponse ret = new XmlRpcResponse(); | 512 | XmlRpcResponse ret = new XmlRpcResponse(); |
512 | Hashtable retparam = new Hashtable(); | 513 | Hashtable retparam = new Hashtable(); |
@@ -541,7 +542,7 @@ namespace OpenSim.Region.ReplaceableModules.MoneyModule | |||
541 | return ret; | 542 | return ret; |
542 | } | 543 | } |
543 | 544 | ||
544 | public XmlRpcResponse landBuy_func(XmlRpcRequest request) | 545 | public XmlRpcResponse landBuy_func(XmlRpcRequest request, IPEndPoint remoteClient) |
545 | { | 546 | { |
546 | XmlRpcResponse ret = new XmlRpcResponse(); | 547 | XmlRpcResponse ret = new XmlRpcResponse(); |
547 | Hashtable retparam = new Hashtable(); | 548 | Hashtable retparam = new Hashtable(); |