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
+12-9Lines changed: 12 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -35,10 +35,9 @@ func NewReadWriteCloser(r io.Reader, w io.Writer, c io.Closer) io.ReadWriteClose
35
35
}
36
36
37
37
varoptsstruct {
38
-
// TODO
39
-
Closebool`short:"c" long:"close" description:"Close connection on EOF from stdin"`
38
+
// This is already the behaviour. Probably too difficult (and no reason) to implement
39
+
// Close bool `short:"c" long:"close" description:"Close connection on EOF from stdin"`
40
40
Detectbool`short:"D" long:"detect" description:"Detect remote shell automatically and try to raise a TTY on the remote (action)"`
41
-
// TODO
42
41
Execstring`short:"e" long:"exec" description:"Program to exec after connect"`
43
42
// TODO
44
43
Gateway []string`short:"g" long:"gateway" description:"Source-routing hop point[s], up to 8"`
@@ -53,12 +52,11 @@ var opts struct {
53
52
DontResolvebool`short:"n" long:"dont-resolve" description:"Numeric-only IP addresses, no DNS"`
54
53
// TODO
55
54
Outputstring`short:"o" long:"output" description:"Output hexdump traffic to FILE (implies -x)"`
56
-
Portstring`short:"p" long:"port" description:"Local port number"`
55
+
Portstring`short:"p" long:"local-port" description:"Local port number"`
57
56
Protocolstring`short:"P" long:"protocol" description:"Provide protocol in the form of tcp{,4,6}|udp{,4,6}|unix{,gram,packet}|ip{,4,6}[:<protocol-number>|:<protocol-name>]\nFor <protocol-number> check https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml"`
58
-
// TODO
57
+
// Does not have any effect - even on netcat
59
58
Randomizebool`short:"r" long:"randomize" description:"Randomize local and remote ports"`
60
59
Rawbool`short:"R" long:"auto-raw" description:"Put local TTY in Raw mode on connect (action)"`
61
-
// TODO
62
60
Sourcestring`short:"s" long:"source" description:"Local source address (ip or hostname)"`
0 commit comments