summaryrefslogtreecommitdiff
path: root/modules/core
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core')
-rw-r--r--modules/core/os_defcon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/core/os_defcon.cpp b/modules/core/os_defcon.cpp
index 009d34dda..711046beb 100644
--- a/modules/core/os_defcon.cpp
+++ b/modules/core/os_defcon.cpp
@@ -274,7 +274,7 @@ class OSDefcon : public Module
void OnUserConnect(User *u)
{
Session *session = findsession(u->host);
- Exception *exception = find_hostip_exception(u->host, u->hostip);
+ Exception *exception = find_hostip_exception(u->host, u->ip.addr());
if (CheckDefCon(DEFCON_REDUCE_SESSION) && !exception)
{