From fbaa081aa614e7bc6682372f87f19d3319e65d3f Mon Sep 17 00:00:00 2001 From: yunlzheng Date: Wed, 30 Oct 2019 16:50:36 +0800 Subject: [PATCH] remove remote host from sshuttle command --- pkg/kt/util/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kt/util/util.go b/pkg/kt/util/util.go index f3dd6f5..82e5030 100644 --- a/pkg/kt/util/util.go +++ b/pkg/kt/util/util.go @@ -72,7 +72,7 @@ func SSHUttle(remoteHost string, remotePort int, DNSServer string, disableDNS bo } subCommand := fmt.Sprintf("ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -i %s", PrivateKeyPath()) - args = append(args, "-e", subCommand, "-r", fmt.Sprintf("root@%s:%d", remoteHost, remotePort), "-x", remoteHost) + args = append(args, "-e", subCommand, "-r", fmt.Sprintf("root@%s:%d", remoteHost, remotePort), "-x") args = append(args, cidrs...) return exec.Command("sshuttle", args...) }