title: x-forwarded-for not working to get client ip
body: <p>I try to get <code>ip</code> in <code>node.js - nginx</code> site configuration:</p>
  
  <pre><code>var ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress
  </code></pre>
  
  <p>My nginx settings:</p>
  
  <pre><code>location / {
          proxy_pass    http://127.0.0.1:3086/;
          proxy_set_header  X-Real-IP  $remote_addr;
      }
  </code></pre>
  
  <p>Instead of <code>ip</code> address of client I got: <code>0:0:0:0:0:0:0:1%0</code></p>