Skip to content
Snippets Groups Projects
Commit 6bfa4b0b authored by echicken's avatar echicken :chicken:
Browse files

Address family must occupy bytes 15 & 16

parent 32238a33
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment