Commit 6bfa4b0b authored by echicken's avatar echicken 🐔
Browse files

Address family must occupy bytes 15 & 16

parent 32238a33
......@@ -95,9 +95,9 @@ try {
if (UsingHAProxy()) {
var hapstr = '\x0D\x0A\x0D\x0A\x00\x0D\x0A\x51\x55\x49\x54\x0A\x21';
if (client.socket.family === PF_INET) {
hapstr += '\x11\x0C';
hapstr += '\x11\x00\x0C';
} else if (client.socket.family === PF_INET6) {
hapstr += '\x21\x24';
hapstr += '\x21\x00\x24';
}
hapstr += inet_pton(FWebSocketHeader['X-Forwarded-For']);
hapstr += inet_pton(FServerSocket.remote_ip_address);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment