Skip to content

Shorten the hostname from DHCP when necessary

Beniamino Galvani requested to merge bg/dhcp-shorten-hostname into master

The hostname received in option 12 can be a FQDN longer than the maximum allowed by kernel (64 characters). Change the code in NMPolicy to gracefully handle such hostnames by truncating them to the first dot or to the maximum length, whatever comes earlier.

Fixes #572 (closed).

Merge request reports