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

Use client address from header

parent 282d9bfc
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -99,7 +99,7 @@ try {
} else if (client.socket.family === PF_INET6) {
hapstr += '\x21\x24';
}
hapstr += inet_pton(client.ip_address);
hapstr += inet_pton(FWebSocketHeader['X-Forwarded-For']);
hapstr += inet_pton(FServerSocket.remote_ip_address);
hapstr += client.port.toString(16);
hapstr += TargetPort.toString(16);
......
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