Tobias von Dewitz 6 rokov pred
rodič
commit
b6a8f5c11e
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  1. 4 0
      main.go

+ 4 - 0
main.go

@@ -288,6 +288,10 @@ func nginxLogCapture(logfile, format string) {
 
 		xff, err := logEntry.Field("http_x_forwarded_for")
 		if err != nil && xff != "" {
+			if config.Trace {
+				log.Printf("Using XFF: %s\n", xff)
+			}
+
 			remote = xff
 		}