kopia lustrzana https://github.com/c9/core
fix jumphost support for ssh workspaces
rodzic
b964395f86
commit
7a8e6cb3ad
|
@ -17,11 +17,9 @@ function quote(str) {
|
|||
}
|
||||
|
||||
function addProxyCommand(args, proxy) {
|
||||
var m = /^(.+)(?::(\d+))?$/.exec(proxy);
|
||||
if (!m)
|
||||
return;
|
||||
var proxyHost = m[1];
|
||||
var proxyPort = parseInt(m[2], 10) || 22;
|
||||
var m = proxy.split(":");
|
||||
var proxyHost = m[0];
|
||||
var proxyPort = parseInt(m[1], 10) || 22;
|
||||
var proxyCmd = "ProxyCommand=ssh -W %h:%p " + args.map(quote).join(" ");
|
||||
proxyCmd += " -p " + proxyPort + " " + quote(proxyHost);
|
||||
args.push(
|
||||
|
|
Ładowanie…
Reference in New Issue