You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: settings.go
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,7 @@ type AppSettings struct {
47
47
inputRAWMultiOption
48
48
inputRAWEnginestring
49
49
inputRAWTrackResponsebool
50
+
inputRAWRealIPHeaderstring
50
51
51
52
middlewarestring
52
53
@@ -102,6 +103,8 @@ func init() {
102
103
103
104
flag.StringVar(&Settings.inputRAWEngine, "input-raw-engine", "libpcap", "Intercept traffic using `libpcap` (default), and `raw_socket`")
104
105
106
+
flag.StringVar(&Settings.inputRAWRealIPHeader, "input-raw-realip-header", "", "If not blank, injects header with given name and real IP value to the request payload. Usually this header should be named: X-Real-IP")
107
+
105
108
flag.StringVar(&Settings.middleware, "middleware", "", "Used for modifying traffic using external command")
106
109
107
110
flag.Var(&Settings.inputHTTP, "input-http", "Read requests from HTTP, should be explicitly sent from your application:\n\t# Listen for http on 9000\n\tgor --input-http :9000 --output-http staging.com")
0 commit comments