mirror of
https://github.com/wahyd4/kt-connect.git
synced 2026-08-09 05:16:02 +10:00
remove remote host from sshuttle command
This commit is contained in:
+1
-1
@@ -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...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user