Do not trust X-Real-IP header by default

Use -H option to whitelist header to trust for remote IP address. This
is useful when a reverse proxy is used in front of ipd.
This commit is contained in:
Martin Polden
2016-04-17 15:52:06 +02:00
parent 270ffec441
commit 3134de8260
4 changed files with 32 additions and 14 deletions

View File

@ -88,6 +88,7 @@ Application Options:
-r, --reverse-lookup Perform reverse hostname lookups
-p, --port-lookup Enable port lookup
-t, --template= Path to template (default: index.html)
-H, --trusted-header= Header to trust for remote IP, if present (e.g. X-Real-IP)
Help Options:
-h, --help Show this help message