mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-06 13:17:44 +03:00
dhcp: the localhost isn't valid as hostname either
This commit is contained in:
parent
4d229b318a
commit
708281b811
@ -537,7 +537,7 @@ int dhcp_lease_parse_options(uint8_t code, uint8_t len, const uint8_t *option,
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
if (!hostname_is_valid(hostname))
|
||||
if (!hostname_is_valid(hostname) || is_localhost(hostname))
|
||||
break;
|
||||
|
||||
free(lease->hostname);
|
||||
|
Loading…
Reference in New Issue
Block a user