From: Darren Date: Wed, 7 Nov 2012 20:57:44 +0000 (+0000) Subject: Server: Custom x-forward-for HTTP header X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=31a18fa40df13ed54c2d362522ec37462352a9fe;p=KiwiIRC.git Server: Custom x-forward-for HTTP header --- diff --git a/config.js b/config.js index 6837641..ebc83bc 100644 --- a/config.js +++ b/config.js @@ -78,6 +78,9 @@ conf.reject_unauthorised_certificates = false; // Whitelisted HTTP proxies conf.http_proxies = ["127.0.0.1"]; +// Header that contains the real-ip from the HTTP proxy +conf.http_proxy_ip_header = "x-forwarded-for"; + // Enabled transports for the client to use conf.transports = [ "websocket",