summaryrefslogtreecommitdiff
path: root/src/inspsocket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r--src/inspsocket.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp
index 9d2745a2d..23d89a71f 100644
--- a/src/inspsocket.cpp
+++ b/src/inspsocket.cpp
@@ -483,6 +483,17 @@ bool InspSocket::Poll()
if (!this->Instance->SE->AddFd(this))
return false;
}
+ if (this->IsIOHooked)
+ {
+ try
+ {
+ Instance->Config->GetIOHook(this)->OnRawSocketConnect(this->fd);
+ }
+ catch (ModuleException& modexcept)
+ {
+ Instance->Log(DEBUG,"Module exception cought: %s",modexcept.GetReason());
+ }
+ }
return this->OnConnected();
break;
case I_LISTENING: