Add IPv6 support in HTTP monitor and don't follow the redirects

Fixes #3560
Fixes #3554
This commit is contained in:
emanuele-f 2020-03-16 11:23:37 +01:00
parent 944da5e10b
commit 26520abf34
6 changed files with 31 additions and 9 deletions

View file

@ -58,7 +58,7 @@ function rtt_utils.key2label(key)
if(probe_type == "icmp") then
return string.format("%s [%s] (%s)", parts[1], iplabel, i18n("icmp"))
elseif (probe_type == "http_get") then
return string.format("%s (%s)", unescapeHttpHost(parts[1]), i18n("system_stats.http_get"))
return string.format("%s [%s] (%s)", unescapeHttpHost(parts[1]), iplabel, i18n("system_stats.http_get"))
end
end