-
Notifications
You must be signed in to change notification settings - Fork 71
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
use port from config file; if no port specified from config or cli, t… #84
Conversation
main.go
Outdated
|
||
if keyfile, ok := file.Get("ssh-tunnel", "keyfile"); ok { | ||
config.SSHConnConfig.KeyFile = keyfile | ||
} | ||
return nil |
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.
I'm guessing this was inadvertently included from another commit?
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.
Ah yep was looking at also adding a key file option to support things like vagrant easier
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.
updated d08e1b7
main.go
Outdated
@@ -968,7 +968,7 @@ func LoadConfig() (*Config, error) { | |||
} | |||
|
|||
if config.SSHConnConfig.Port == "" { | |||
config.SSHConnConfig.Port = "ssh" | |||
config.SSHConnConfig.Port = "22" |
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.
This doesn't matter. Go looks up port service names and translates to the numerical value.
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.
updated d08e1b7
e795465
to
561b43e
Compare
…hen default to 22
561b43e
to
d08e1b7
Compare
Thanks! |
…hen default to 22