aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_haproxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_haproxy.cpp')
-rw-r--r--src/modules/m_haproxy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_haproxy.cpp b/src/modules/m_haproxy.cpp
index 3bb78ef7a..03c2a4745 100644
--- a/src/modules/m_haproxy.cpp
+++ b/src/modules/m_haproxy.cpp
@@ -272,7 +272,7 @@ class HAProxyHook : public IOHookMiddle
break;
}
- if (!sock->OnSetEndPoint(server, client))
+ if (!sock->OnSetLocalEndPoint(server) || !sock->OnSetRemoteEndPoint(client))
return -1;
// Parse any available TLVs.