X Forwarded For option is not used in login history
When we store the IP address in login history, we do not take into account the parameter useXForwardedForIP.
I think we should change the way we use this option.
What we do now is to store a xForwardedForAddr field in session, and in sessions explorer, we use this field as IP field.
A better approach would be to check this option when we registre IP in session, and register XForwardedFor IP in ipAddr field if the option is set. This will simplify all the code, we then just have to trust the ipAddr field.
Please raise your hand if you do not agree with this, else I will start to do the changes.