@@ -51,6 +51,12 @@ func main() {
5151 EnvVars : []string {"PLUGIN_PORT" , "SSH_PORT" , "INPUT_PORT" },
5252 Value : 22 ,
5353 },
54+ & cli.StringFlag {
55+ Name : "protocol" ,
56+ Usage : "The IP protocol to use. Default to tcp (both IPv4 and IPv6)." ,
57+ EnvVars : []string {"PLUGIN_PROTOCOL" , "SSH_PROTOCOL" , "INPUT_PROTOCOL" },
58+ Value : "tcp" ,
59+ },
5460 & cli.StringFlag {
5561 Name : "username" ,
5662 Aliases : []string {"user" , "u" },
@@ -141,6 +147,12 @@ func main() {
141147 EnvVars : []string {"PLUGIN_PROXY_PORT" , "PROXY_SSH_PORT" , "INPUT_PROXY_PORT" },
142148 Value : "22" ,
143149 },
150+ & cli.StringFlag {
151+ Name : "proxy.protocol" ,
152+ Usage : "The IP protocol to use for the proxy. Default to tcp (both IPv4 and IPv6)." ,
153+ EnvVars : []string {"PLUGIN_PROTOCOL" , "SSH_PROTOCOL" , "INPUT_PROTOCOL" },
154+ Value : "tcp" ,
155+ },
144156 & cli.StringFlag {
145157 Name : "proxy.username" ,
146158 Usage : "connect as user of proxy" ,
@@ -259,6 +271,7 @@ func run(c *cli.Context) error {
259271 Fingerprint : c .String ("fingerprint" ),
260272 Host : c .StringSlice ("host" ),
261273 Port : c .Int ("port" ),
274+ Protocol : easyssh .Protocol (c .String ("protocol" )),
262275 Timeout : c .Duration ("timeout" ),
263276 CommandTimeout : c .Duration ("command.timeout" ),
264277 Script : scripts ,
@@ -278,6 +291,7 @@ func run(c *cli.Context) error {
278291 Fingerprint : c .String ("proxy.fingerprint" ),
279292 Server : c .String ("proxy.host" ),
280293 Port : c .String ("proxy.port" ),
294+ Protocol : easyssh .Protocol (c .String ("proxy.protocol" )),
281295 Timeout : c .Duration ("proxy.timeout" ),
282296 Ciphers : c .StringSlice ("proxy.ciphers" ),
283297 UseInsecureCipher : c .Bool ("proxy.useInsecureCipher" ),
0 commit comments