Commit 32238a33 authored by echicken's avatar echicken 🐔
Browse files

Use client address from header

parent 282d9bfc
......@@ -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);
......
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