mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Allow underscores in IP address wildcards of users, in conjunction with --skip-name-resolve on the server. Closes #1080
This commit is contained in:
@@ -1501,7 +1501,8 @@ var
|
||||
rx: TRegExpr;
|
||||
begin
|
||||
rx := TRegExpr.Create;
|
||||
rx.Expression := '^(localhost|[\d\.\/\:]+|.*%.*|[\w\d]{4}\:.*)$';
|
||||
// Valid ips or wildcards which do not need name resolving:
|
||||
rx.Expression := '^(localhost|[\d\.\/\:_]+|.*%.*|[\w\d_]{4}\:.*)$';
|
||||
Result := not rx.Exec(Host);
|
||||
rx.Free;
|
||||
end;
|
||||
|
||||
Reference in New Issue
Block a user