mirror of
https://github.com/rejetto/hfs2.git
synced 2025-12-19 10:03:56 +01:00
fix: right click on the log didn't recognize IPv6 addresses to offer 'ban this address'
This commit is contained in:
parent
75d3d8e5e1
commit
1546a41fb9
10
main.pas
10
main.pas
@ -11259,14 +11259,10 @@ result:='';
|
|||||||
pt:=pointToCharPoint(logBox, logRightClick);
|
pt:=pointToCharPoint(logBox, logRightClick);
|
||||||
if pt.x < 0 then
|
if pt.x < 0 then
|
||||||
pt:=logbox.caretpos;
|
pt:=logbox.caretpos;
|
||||||
if pt.y >= logbox.lines.count then exit;
|
if pt.y >= logbox.lines.count then
|
||||||
|
exit;
|
||||||
s:=logbox.lines[pt.y];
|
s:=logbox.lines[pt.y];
|
||||||
if pt.x > length(s) then exit;
|
s:=reGet(s, '^\S+ +(\S+@)?(\S+):\d+ ', 2);
|
||||||
i:=pt.x;
|
|
||||||
while (i > 1) and (s[i] <> ' ') do dec(i);
|
|
||||||
inc(i);
|
|
||||||
s:=copy(s,i, posEx(' ',s,i));
|
|
||||||
s:=trim(getTill(':',getTill('@',s)));
|
|
||||||
if checkAddressSyntax(s,FALSE) then
|
if checkAddressSyntax(s,FALSE) then
|
||||||
result:=s;
|
result:=s;
|
||||||
end; // ipPointedInLog
|
end; // ipPointedInLog
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user