aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Agent/IPBan
diff options
context:
space:
mode:
authorUbitUmarov2017-05-22 19:14:19 +0100
committerUbitUmarov2017-05-22 19:16:42 +0100
commit73222e4dd4e735225845184de22e245c454b40db (patch)
tree49916523ffd58cc1325371b682fd182571f4f25b /OpenSim/Region/CoreModules/Agent/IPBan
parentPGSQL: Another missing cast in XInventoryData (diff)
downloadopensim-SC-73222e4dd4e735225845184de22e245c454b40db.zip
opensim-SC-73222e4dd4e735225845184de22e245c454b40db.tar.gz
opensim-SC-73222e4dd4e735225845184de22e245c454b40db.tar.bz2
opensim-SC-73222e4dd4e735225845184de22e245c454b40db.tar.xz
fix IClientIPEndpoint broken by justin long ago.. but stop using it
except on SceneBanner, later it my be also removed from there and everywhere
Diffstat (limited to 'OpenSim/Region/CoreModules/Agent/IPBan')
-rw-r--r--OpenSim/Region/CoreModules/Agent/IPBan/SceneBanner.cs4
1 files changed, 2 insertions, 2 deletions
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 {