Add new CLI option to disable SSH connections
This commit is contained in:
@@ -74,6 +74,9 @@ func NewFromUrl(url string, sshInfo *shared.SSHInfo) (*Client, error) {
|
||||
var tunnel *Tunnel
|
||||
|
||||
if sshInfo != nil {
|
||||
if command.Opts.DisableSSH {
|
||||
return nil, fmt.Errorf("ssh connections are disabled")
|
||||
}
|
||||
if command.Opts.Debug {
|
||||
fmt.Println("Opening SSH tunnel for:", sshInfo)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user