Implements [IPv6] suffix is not displayed

Implements #4336
This commit is contained in:
Matteo Biscosi 2021-03-02 18:58:43 +01:00
parent 97d1a12661
commit fdfa2c6246

View file

@ -1537,10 +1537,16 @@ function hostinfo2label(host_info, show_vlan)
end
alt_name = getHostAltName(ip)
if not isEmptyString(alt_name) then
alt_name = add_vlan_to_alt_name(alt_name, host_info, show_vlan)
if isIPv6(ip) == true then
alt_name = alt_name .. " [IPv6]"
end
-- Adding the vlan if requested
return add_vlan_to_alt_name(alt_name, host_info, show_vlan)
return alt_name
end
-- Name info from C (e.g. DHCP name)