diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Agent/IPBan')
-rw-r--r-- | OpenSim/Region/CoreModules/Agent/IPBan/IPBanModule.cs | 8 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/Agent/IPBan/SceneBanner.cs | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Region/CoreModules/Agent/IPBan/IPBanModule.cs b/OpenSim/Region/CoreModules/Agent/IPBan/IPBanModule.cs index 4b457b1..ff71593 100644 --- a/OpenSim/Region/CoreModules/Agent/IPBan/IPBanModule.cs +++ b/OpenSim/Region/CoreModules/Agent/IPBan/IPBanModule.cs | |||
@@ -38,7 +38,7 @@ using OpenSim.Region.Framework.Scenes; | |||
38 | namespace OpenSim.Region.CoreModules.Agent.IPBan | 38 | namespace OpenSim.Region.CoreModules.Agent.IPBan |
39 | { | 39 | { |
40 | [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "IPBanModule")] | 40 | [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "IPBanModule")] |
41 | public class IPBanModule : ISharedRegionModule | 41 | public class IPBanModule : ISharedRegionModule |
42 | { | 42 | { |
43 | #region Implementation of ISharedRegionModule | 43 | #region Implementation of ISharedRegionModule |
44 | 44 | ||
@@ -86,7 +86,7 @@ namespace OpenSim.Region.CoreModules.Agent.IPBan | |||
86 | 86 | ||
87 | public void Close() | 87 | public void Close() |
88 | { | 88 | { |
89 | 89 | ||
90 | } | 90 | } |
91 | 91 | ||
92 | public string Name | 92 | public string Name |
@@ -107,9 +107,9 @@ namespace OpenSim.Region.CoreModules.Agent.IPBan | |||
107 | /// matching domain (including "betasomewhere.com", "beta.somewhere.com", | 107 | /// matching domain (including "betasomewhere.com", "beta.somewhere.com", |
108 | /// "somewhere.com.beta") - make sure to be reasonably specific in DNS | 108 | /// "somewhere.com.beta") - make sure to be reasonably specific in DNS |
109 | /// bans. | 109 | /// bans. |
110 | /// | 110 | /// |
111 | /// IP address bans match on first characters, so, | 111 | /// IP address bans match on first characters, so, |
112 | /// "127.0.0.1" will ban only that address, | 112 | /// "127.0.0.1" will ban only that address, |
113 | /// "127.0.1" will ban "127.0.10.0" | 113 | /// "127.0.1" will ban "127.0.10.0" |
114 | /// but "127.0.1." will ban only the "127.0.1.*" network | 114 | /// but "127.0.1." will ban only the "127.0.1.*" network |
115 | /// </summary> | 115 | /// </summary> |
diff --git a/OpenSim/Region/CoreModules/Agent/IPBan/SceneBanner.cs b/OpenSim/Region/CoreModules/Agent/IPBan/SceneBanner.cs index 8502006..b4c68e2 100644 --- a/OpenSim/Region/CoreModules/Agent/IPBan/SceneBanner.cs +++ b/OpenSim/Region/CoreModules/Agent/IPBan/SceneBanner.cs | |||
@@ -53,9 +53,9 @@ namespace OpenSim.Region.CoreModules.Agent.IPBan | |||
53 | if (bans.Count > 0) | 53 | if (bans.Count > 0) |
54 | { | 54 | { |
55 | IClientIPEndpoint ipEndpoint; | 55 | IClientIPEndpoint ipEndpoint; |
56 | if (client.TryGet(out ipEndpoint)) | 56 | if (client.TryGet(out ipEndpoint) && ipEndpoint.RemoteEndPoint != null) |
57 | { | 57 | { |
58 | IPAddress end = ipEndpoint.EndPoint; | 58 | IPAddress end = ipEndpoint.RemoteEndPoint.Address; |
59 | 59 | ||
60 | try | 60 | try |
61 | { | 61 | { |