New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add none support to ProxyJump #893
base: master
Are you sure you want to change the base?
Conversation
lib/net/ssh/config.rb
Outdated
@@ -154,7 +154,10 @@ def load(path, host, settings = {}, base_dir = nil) | |||
# ProxyCommand and ProxyJump override each other so they need to be tracked togeather | |||
%w[proxyjump proxycommand].each do |proxy_key| | |||
if (proxy_value = settings.delete(proxy_key)) | |||
settings['proxy'] ||= [proxy_key, proxy_value] | |||
# When ProxyJump is set to none explicity disable the jumphost |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we clear settings['proxy'] if proxy jump is none. I mean if one config has a proxy configured but a more specific sets it none then we should clear it, shouldn't we?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I totally missed this! Let me fix that up
Co-authored-by: Miklós Fazekas <mfazekas@szemafor.com>
As per OpenSSH man docs
This along with the tests should obey the above