Skip to content

Commit 8be3ff6

Browse files
committed
fix: log > ban ip address, not working with AM/PM time locale
1 parent df5fa09 commit 8be3ff6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

main.pas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4174,11 +4174,11 @@ procedure Tmainfrm.add2log(lines:string; cd:TconnData=NIL; clr:Tcolor=Graphics.c
41744174
if logFontSize > 0 then
41754175
logBox.SelAttributes.size:=logFontSize;
41764176
logBox.SelAttributes.Color:=clRed;
4177-
logBox.SelText:=ts+' ';
4177+
logBox.SelText:=ts+' ';
41784178
if addr > '' then
41794179
begin
41804180
logBox.SelAttributes.Color:=ADDRESS_COLOR;
4181-
logBox.SelText:=addr+' ';
4181+
logBox.SelText:=addr+' ';
41824182
end;
41834183
logBox.SelAttributes.color:=clr;
41844184
logBox.SelText:=first+CRLF;
@@ -11258,7 +11258,7 @@ function Tmainfrm.ipPointedInLog():string;
1125811258
if pt.y >= logbox.lines.count then
1125911259
exit;
1126011260
s:=logbox.lines[pt.y];
11261-
s:=reGet(s, '^\S+ +(\S+@)?(\S+):\d+ ', 2);
11261+
s:=reGet(s, '.+ (\S+@)?(\S+):\d+ ', 2);
1126211262
if checkAddressSyntax(s,FALSE) then
1126311263
result:=s;
1126411264
end; // ipPointedInLog

0 commit comments

Comments
 (0)