aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index e8ff33b..7953398 100644
--- a/main.go
+++ b/main.go
@@ -85,6 +85,7 @@ func main() {
logReferer := flag.Bool("log-referer", false, "log Referer headers")
logRefererHash := flag.Bool("log-referer-hash", false, "log hashed Referer headers")
logHashSalt := flag.String("log-hash-salt", "", "salt to use for hashed log entries")
+ proxyCount := flag.Int("proxy-count", 0, "count of trusted reverse proxies")
flag.Parse()
@@ -115,6 +116,7 @@ func main() {
DefaultLogger.HashUserAgent = *logUAHash
DefaultLogger.HashReferer = *logRefererHash
DefaultLogger.HashSalt = *logHashSalt
+ DefaultLogger.ProxyCount = *proxyCount
}
http.HandleFunc("/upload.php", handleUpload)