aboutsummaryrefslogtreecommitdiffstats
path: root/include/inspsocket.h
diff options
context:
space:
mode:
authorGravatar Matt Schatz2020-07-20 20:37:20 -0600
committerGravatar Sadie Powell2020-07-27 09:38:11 +0100
commit30648e84ce9c2515994b95b9d1e2e870283ed214 (patch)
tree19012b55331f7725d1bca1c683fab1bae245e139 /include/inspsocket.h
parentAllow disabling the timedbans set/unset notices (#1789). (diff)
downloadinspircd++-30648e84ce9c2515994b95b9d1e2e870283ed214.tar.gz
inspircd++-30648e84ce9c2515994b95b9d1e2e870283ed214.tar.bz2
inspircd++-30648e84ce9c2515994b95b9d1e2e870283ed214.zip
Fix secure websocket users not being seen as secure.
Since a TLS (SSL) module will always be the last IOHook attached to a socket, IsSSL() needs to ignore any Middle IOHooks that may also be attached.
Diffstat (limited to 'include/inspsocket.h')
-rw-r--r--include/inspsocket.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/inspsocket.h b/include/inspsocket.h
index fef76ae4e..16d2cdbce 100644
--- a/include/inspsocket.h
+++ b/include/inspsocket.h
@@ -365,6 +365,11 @@ class CoreExport StreamSocket : public EventHandler
* @return IOHook belonging to the module or NULL if the module haven't attached an IOHook to this socket
*/
IOHook* GetModHook(Module* mod) const;
+
+ /** Get the last IOHook attached to this socket
+ * @return The last IOHook attached to this socket or NULL if no IOHooks are attached
+ */
+ IOHook* GetLastHook() const;
};
/**
* BufferedSocket is an extendable socket class which modules