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: main.go
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@ func init() {
36
36
flag.StringVar(&listenAddrStr, "l", "0.0.0.0:8443", "Address the proxy listens on")
37
37
flag.StringVar(&targetAddr4Str, "4", "127.0.0.1:443", "Address to which IPv4 traffic will be forwarded to")
38
38
flag.StringVar(&targetAddr6Str, "6", "[::1]:443", "Address to which IPv6 traffic will be forwarded to")
39
+
flag.BoolVar(&opts.DynamicDestination, "dynamic-destination", false, "Traffic will be forwarded to the destination specified in the PROXY protocol header")
39
40
flag.IntVar(&opts.Mark, "mark", 0, "The mark that will be set on outbound packets")
40
41
flag.IntVar(&opts.Verbose, "v", 0, `0 - no logging of individual connections
41
42
1 - log errors occurring in individual connections
@@ -44,7 +45,7 @@ func init() {
44
45
"Path to a file that contains allowed subnets of the proxy servers")
45
46
flag.IntVar(&listeners, "listeners", 1,
46
47
"Number of listener sockets that will be opened for the listen address (Linux 3.9+)")
47
-
flag.IntVar(&udpCloseAfterInt, "close-after", 60, "Number of seconds after which UDP socket will be cleaned up")
48
+
flag.IntVar(&udpCloseAfterInt, "close-after", 60, "Number of seconds after which UDP socket will be cleaned up on inactivity")
0 commit comments