diff options
author | Adam Frisby | 2009-05-11 19:23:51 +0000 |
---|---|---|
committer | Adam Frisby | 2009-05-11 19:23:51 +0000 |
commit | 6dcafec22d560c50625c8a391701606a1a0bb363 (patch) | |
tree | 6e0199901946f9a0b7a9797bbc85a30c2b094288 /OpenSim/Framework | |
parent | Add selling for $0 back to the sample economy module. This is disabled by (diff) | |
download | opensim-SC_OLD-6dcafec22d560c50625c8a391701606a1a0bb363.zip opensim-SC_OLD-6dcafec22d560c50625c8a391701606a1a0bb363.tar.gz opensim-SC_OLD-6dcafec22d560c50625c8a391701606a1a0bb363.tar.bz2 opensim-SC_OLD-6dcafec22d560c50625c8a391701606a1a0bb363.tar.xz |
* Implements IP and DNS based ban facilities to OpenSim.
* User interface is ... primitive at best right now.
* Loads bans from bans.txt and region ban DB on startup, bans.txt is in the format of one per line. The following explains how they are read;
DNS bans are in the form "somewhere.com" will block ANY matching domain (including "betasomewhere.com", "beta.somewhere.com", "somewhere.com.beta") - make sure to be reasonably specific in DNS bans.
IP address bans match on first characters, so, "127.0.0.1" will ban only that address, "127.0.1" will ban "127.0.10.0" but "127.0.1." will ban only the "127.0.1.*" network
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Client/IClientCore.cs | 9 | ||||
-rw-r--r-- | OpenSim/Framework/Client/IClientIPEndpoint.cs | 12 |
2 files changed, 21 insertions, 0 deletions
diff --git a/OpenSim/Framework/Client/IClientCore.cs b/OpenSim/Framework/Client/IClientCore.cs index 78f0411..1d08fb9 100644 --- a/OpenSim/Framework/Client/IClientCore.cs +++ b/OpenSim/Framework/Client/IClientCore.cs | |||
@@ -25,11 +25,20 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using OpenMetaverse; | ||
29 | |||
28 | namespace OpenSim.Framework.Client | 30 | namespace OpenSim.Framework.Client |
29 | { | 31 | { |
30 | public interface IClientCore | 32 | public interface IClientCore |
31 | { | 33 | { |
32 | bool TryGet<T>(out T iface); | 34 | bool TryGet<T>(out T iface); |
33 | T Get<T>(); | 35 | T Get<T>(); |
36 | |||
37 | // Basic Interfaces | ||
38 | UUID AgentId { get; } | ||
39 | |||
40 | void Disconnect(string reason); | ||
41 | void Disconnect(); | ||
42 | |||
34 | } | 43 | } |
35 | } \ No newline at end of file | 44 | } \ No newline at end of file |
diff --git a/OpenSim/Framework/Client/IClientIPEndpoint.cs b/OpenSim/Framework/Client/IClientIPEndpoint.cs new file mode 100644 index 0000000..b80dea5 --- /dev/null +++ b/OpenSim/Framework/Client/IClientIPEndpoint.cs | |||
@@ -0,0 +1,12 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Net; | ||
4 | using System.Text; | ||
5 | |||
6 | namespace OpenSim.Framework.Client | ||
7 | { | ||
8 | public interface IClientIPEndpoint | ||
9 | { | ||
10 | IPAddress EndPoint { get; } | ||
11 | } | ||
12 | } | ||