Skip to content
Snippets Groups Projects
Commit ba73ce8d authored by Konrad Zemek's avatar Konrad Zemek
Browse files

Note that --listeners>1 only works for Linux 3.9+.

parent ab9f257a
Branches
No related tags found
No related merge requests found
...@@ -51,15 +51,13 @@ Usage of ./go-mmproxy: ...@@ -51,15 +51,13 @@ Usage of ./go-mmproxy:
-l string -l string
Adress the proxy listens on (default "0.0.0.0:8443") Adress the proxy listens on (default "0.0.0.0:8443")
-listeners int -listeners int
Number of listener sockets that will be opened for the listen address (default 1) Number of listener sockets that will be opened for the listen address (Linux 3.9+) (default 1)
-mark int -mark int
The mark that will be set on outbound packets The mark that will be set on outbound packets
-v int -v int
0 - no logging of individual connections 0 - no logging of individual connections
1 - log errors occuring in individual connections 1 - log errors occuring in individual connections
2 - log all state changes of individual connections 2 - log all state changes of individual connections
``` ```
Example invocation: Example invocation:
......
...@@ -42,7 +42,8 @@ func init() { ...@@ -42,7 +42,8 @@ func init() {
flag.IntVar(&verbose, "v", 0, `0 - no logging of individual connections flag.IntVar(&verbose, "v", 0, `0 - no logging of individual connections
1 - log errors occuring in individual connections 1 - log errors occuring in individual connections
2 - log all state changes of individual connections`) 2 - log all state changes of individual connections`)
flag.IntVar(&listeners, "listeners", 1, "Number of listener sockets that will be opened for the listen address") flag.IntVar(&listeners, "listeners", 1,
"Number of listener sockets that will be opened for the listen address (Linux 3.9+)")
} }
func readRemoteAddrPROXYv2(conn net.Conn, ctrlBuf []byte) (net.Addr, net.Addr, []byte, error) { func readRemoteAddrPROXYv2(conn net.Conn, ctrlBuf []byte) (net.Addr, net.Addr, []byte, error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment