aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_haproxy.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-10-04 17:07:51 +0100
committerGravatar Sadie Powell2021-10-04 17:39:05 +0100
commitdec5875aca7a2e0c281388db2f25d195ad9b2a3d (patch)
tree0f8f741801677daa23e7f399282b64ecde137ad0 /src/modules/m_haproxy.cpp
parentMark all message tag provider classes as final. (diff)
Apply the final keyword to all module classes where appropriate.
Diffstat (limited to 'src/modules/m_haproxy.cpp')
-rw-r--r--src/modules/m_haproxy.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/modules/m_haproxy.cpp b/src/modules/m_haproxy.cpp
index 02b80ac50..83635394d 100644
--- a/src/modules/m_haproxy.cpp
+++ b/src/modules/m_haproxy.cpp
@@ -92,7 +92,7 @@ enum HAProxyCommand
HPC_PROXY = 0x01
};
-struct HAProxyHeader
+struct HAProxyHeader final
{
// The signature used to identify the HAProxy protocol.
uint8_t signature[PP2_SIGNATURE_LENGTH];
@@ -107,7 +107,8 @@ struct HAProxyHeader
uint16_t length;
};
-class HAProxyHookProvider : public IOHookProvider
+class HAProxyHookProvider final
+ : public IOHookProvider
{
private:
UserCertificateAPI sslapi;
@@ -130,7 +131,8 @@ class HAProxyHookProvider : public IOHookProvider
// The signature for a HAProxy PROXY protocol header.
static const char proxy_signature[13] = "\x0D\x0A\x0D\x0A\x00\x0D\x0A\x51\x55\x49\x54\x0A";
-class HAProxyHook : public IOHookMiddle
+class HAProxyHook final
+ : public IOHookMiddle
{
private:
// The length of the address section.