diff --git a/src/Utils.vala b/src/Utils.vala index 8368ab2cf..8c7afcc34 100644 --- a/src/Utils.vala +++ b/src/Utils.vala @@ -264,13 +264,6 @@ namespace Utils { string hostname = get_ubiquity_compatible_hostname () ?? ("elementary-os" + "-" + get_chassis ()); hostname += "-" + get_machine_id ().substring (0, 8); - // If the automatic hostname logic fails in some way, it's possible we may generate an invalid - // hostname. We could fix this by trimming traling/leading hyphens or other invalid characters. - // But it's probably a bad hostname anyway, so just fallback - if (!Distinst.validate_hostname (hostname)) { - hostname = "elementary-os"; - } - return hostname; } }