mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 03:01:07 +08:00
Issue #1529: detect klink.exe and putty.exe as variants of plink executable
This commit is contained in:
@ -1085,7 +1085,7 @@ begin
|
||||
|
||||
// Build SSH command line
|
||||
// plink bob@domain.com -pw myPassw0rd1 -P 22 -i "keyfile.pem" -L 55555:localhost:3306
|
||||
IsPlink := FConnection.Parameters.SSHExe.ToLowerInvariant.Contains('plink');
|
||||
IsPlink := ExecRegExprI('([pk]link|putty)', FConnection.Parameters.SSHExe);
|
||||
SshCmd := FConnection.Parameters.SSHExe;
|
||||
if IsPlink then
|
||||
SshCmd := SshCmd + ' -ssh';
|
||||
|
Reference in New Issue
Block a user