fioprotocol / fio-registrations

FIO protocol domain and address registration
MIT License
5 stars 9 forks source link

X-Forwarded-For header handling #73

Closed blockpane closed 3 years ago

blockpane commented 4 years ago

Two related problems here, but only opening one issue:

1) The header used for determing the remote IP should be configurable. Not all providers use X-Forwarded-For (even if it is the defacto header) and chained proxies don't always result in a predictable result. Please change this from a hardcoded value to one having x-forwarded-for as a default, but can be overridden in the config.

2) The xff header is being split by the colon. This should be a comma.