mirror of
https://github.com/rejetto/hfs2.git
synced 2025-12-19 10:03:56 +01:00
fix: ipv6 links format in the address bar
This commit is contained in:
parent
d220ec1c70
commit
f318745b1d
2
main.pas
2
main.pas
@ -2788,6 +2788,8 @@ and not mainfrm.noPortInUrlChk.checked then
|
|||||||
result:=':'+srv.port+result;
|
result:=':'+srv.port+result;
|
||||||
if ip = '' then
|
if ip = '' then
|
||||||
ip:=defaultIP;
|
ip:=defaultIP;
|
||||||
|
if Pos(':',ip, Pos(':',ip)+1) > 0 then // ipv6
|
||||||
|
ip:='['+getTill('%',ip)+']';
|
||||||
result:=protoColon()+ip+result;
|
result:=protoColon()+ip+result;
|
||||||
end; // fullURL
|
end; // fullURL
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user