fix: ipv6 links format in the address bar

This commit is contained in:
Massimo Melina 2020-05-26 18:54:13 +02:00
parent d220ec1c70
commit f318745b1d

View File

@ -2788,6 +2788,8 @@ and not mainfrm.noPortInUrlChk.checked then
result:=':'+srv.port+result;
if ip = '' then
ip:=defaultIP;
if Pos(':',ip, Pos(':',ip)+1) > 0 then // ipv6
ip:='['+getTill('%',ip)+']';
result:=protoColon()+ip+result;
end; // fullURL