mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-29 15:44:26 +00:00
fix
This commit is contained in:
parent
b88f7a993c
commit
6ae59654a0
@ -42,7 +42,6 @@ module.exports = {
|
||||
alias: 'v'
|
||||
}, {
|
||||
signature: 'noproxy',
|
||||
parameter: 'noproxy',
|
||||
boolean: true,
|
||||
description: "don't use the proxy configuration for this connection. Only makes sense if you've configured proxy globally."
|
||||
}
|
||||
@ -90,11 +89,11 @@ module.exports = {
|
||||
sshProxyCommand = '';
|
||||
proxyConfig = global.PROXY_CONFIG;
|
||||
if (proxyConfig && !options.noproxy) {
|
||||
proxyAuth = proxyConfig.proxyAuth;
|
||||
tunnelOptions = {
|
||||
proxy: proxyConfig.host + ":" + proxyConfig.port,
|
||||
dest: '%h:%p'
|
||||
};
|
||||
proxyAuth = proxyConfig.proxyAuth;
|
||||
if (proxyAuth) {
|
||||
i = proxyAuth.indexOf(':');
|
||||
_.assign(tunnelOptions, {
|
||||
|
@ -786,7 +786,7 @@ ssh gateway port
|
||||
|
||||
increase verbosity
|
||||
|
||||
#### --noproxy <noproxy>
|
||||
#### --noproxy
|
||||
|
||||
don't use the proxy configuration for this connection. Only makes sense if you've configured proxy globally.
|
||||
|
||||
|
@ -50,7 +50,6 @@ module.exports =
|
||||
alias: 'v'
|
||||
,
|
||||
signature: 'noproxy'
|
||||
parameter: 'noproxy'
|
||||
boolean: true
|
||||
description: "don't use the proxy configuration for this connection.
|
||||
Only makes sense if you've configured proxy globally."
|
||||
@ -90,10 +89,10 @@ module.exports =
|
||||
|
||||
proxyConfig = global.PROXY_CONFIG
|
||||
if proxyConfig and not options.noproxy
|
||||
{ proxyAuth } = proxyConfig
|
||||
tunnelOptions =
|
||||
proxy: "#{proxyConfig.host}:#{proxyConfig.port}"
|
||||
dest: '%h:%p'
|
||||
{ proxyAuth } = proxyConfig
|
||||
if proxyAuth
|
||||
i = proxyAuth.indexOf(':')
|
||||
_.assign tunnelOptions,
|
||||
|
Loading…
x
Reference in New Issue
Block a user