{"action":"created","issue":{"url":"https://api.github.com/repos/theturtle32/WebSocket-Node/issues/190","labels_url":"https://api.github.com/repos/theturtle32/WebSocket-Node/issues/190/labels{/name}","comments_url":"https://api.github.com/repos/theturtle32/WebSocket-Node/issues/190/comments","events_url":"https://api.github.com/repos/theturtle32/WebSocket-Node/issues/190/events","html_url":"https://github.com/theturtle32/WebSocket-Node/issues/190","id":58524188,"number":190,"title":"Is anyone else experiencing WebSocketRequest not accounting for X-Forwarded-For as intended? ","user":{"login":"TreadingWater","id":11151514,"avatar_url":"https://avatars.githubusercontent.com/u/11151514?v=3","gravatar_id":"","url":"https://api.github.com/users/TreadingWater","html_url":"https://github.com/TreadingWater","followers_url":"https://api.github.com/users/TreadingWater/followers","following_url":"https://api.github.com/users/TreadingWater/following{/other_user}","gists_url":"https://api.github.com/users/TreadingWater/gists{/gist_id}","starred_url":"https://api.github.com/users/TreadingWater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TreadingWater/subscriptions","organizations_url":"https://api.github.com/users/TreadingWater/orgs","repos_url":"https://api.github.com/users/TreadingWater/repos","events_url":"https://api.github.com/users/TreadingWater/events{/privacy}","received_events_url":"https://api.github.com/users/TreadingWater/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-22T22:40:15Z","updated_at":"2015-05-21T10:06:35Z","closed_at":null,"body":"I'm admittedly very much a novice at this, so I suspect its something i'm doing wrong not WebSocket-Node, but just incase i'm wrong here goes:\r\n\r\nI have a server hosted by openshift which logs request.headers['x-forwarded-for'] for every http request it receives and it is correctly showing client ip addresses.  \r\n\r\nHowever logging WebSocketRequest.remoteAddress in a similar manner always shows my NodeJS server ip address, furthermore logging WebSocketRequest.httpRequest.headers['x-forwarded-for'] shows undefined.\r\n\r\nI’m completely out of ideas to what could be causing this, I even set ignoreXForwardedFor to false even though it should be by default just incase.  \r\n\r\nAnyway, just thought I should ask incase its not me and this is actually an issue. "},"comment":{"url":"https://api.github.com/repos/theturtle32/WebSocket-Node/issues/comments/104211411","html_url":"https://github.com/theturtle32/WebSocket-Node/issues/190#issuecomment-104211411","issue_url":"https://api.github.com/repos/theturtle32/WebSocket-Node/issues/190","id":104211411,"user":{"login":"codelegend","id":7265746,"avatar_url":"https://avatars.githubusercontent.com/u/7265746?v=3","gravatar_id":"","url":"https://api.github.com/users/codelegend","html_url":"https://github.com/codelegend","followers_url":"https://api.github.com/users/codelegend/followers","following_url":"https://api.github.com/users/codelegend/following{/other_user}","gists_url":"https://api.github.com/users/codelegend/gists{/gist_id}","starred_url":"https://api.github.com/users/codelegend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codelegend/subscriptions","organizations_url":"https://api.github.com/users/codelegend/orgs","repos_url":"https://api.github.com/users/codelegend/repos","events_url":"https://api.github.com/users/codelegend/events{/privacy}","received_events_url":"https://api.github.com/users/codelegend/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T10:06:35Z","updated_at":"2015-05-21T10:06:35Z","body":"I have faced the same issue with Sockjs too. I think it is a problem with Openshift routing"}}