Skip to content

Commit

Permalink
fix: log > ban ip address, not working with AM/PM time locale
Browse files Browse the repository at this point in the history
  • Loading branch information
rejetto committed May 30, 2020
1 parent df5fa09 commit 8be3ff6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.pas
Original file line number Diff line number Diff line change
Expand Up @@ -4174,11 +4174,11 @@ procedure Tmainfrm.add2log(lines:string; cd:TconnData=NIL; clr:Tcolor=Graphics.c
if logFontSize > 0 then
logBox.SelAttributes.size:=logFontSize;
logBox.SelAttributes.Color:=clRed;
logBox.SelText:=ts+' ';
logBox.SelText:=ts+' ';
if addr > '' then
begin
logBox.SelAttributes.Color:=ADDRESS_COLOR;
logBox.SelText:=addr+' ';
logBox.SelText:=addr+' ';
end;
logBox.SelAttributes.color:=clr;
logBox.SelText:=first+CRLF;
Expand Down Expand Up @@ -11258,7 +11258,7 @@ function Tmainfrm.ipPointedInLog():string;
if pt.y >= logbox.lines.count then
exit;
s:=logbox.lines[pt.y];
s:=reGet(s, '^\S+ +(\S+@)?(\S+):\d+ ', 2);
s:=reGet(s, '.+ (\S+@)?(\S+):\d+ ', 2);
if checkAddressSyntax(s,FALSE) then
result:=s;
end; // ipPointedInLog
Expand Down

0 comments on commit 8be3ff6

Please sign in to comment.