mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Let PortOpen() return true when netstat command could not be run, to prevent loops with broken commands
This commit is contained in:
@@ -2844,7 +2844,7 @@ begin
|
||||
{$IfDef WINDOWS}
|
||||
// netstat on Windows
|
||||
CmdResult := RunCommand('netstat -na -p TCP', Output);
|
||||
Result := not Output.Contains(':' + Port.ToString + ' ');
|
||||
Result := (not CmdResult) or (not Output.Contains(':' + Port.ToString + ' '));
|
||||
{$EndIf}
|
||||
end;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user