It used to return some readable derivative of the device name in .local domain.
Since device name is not accessible anymore (without special entitlement) we used gethostname() as a "hint" reference in logs and across web UIl where long lists of enrolled devices are listed.
Topic:
App & System Services
SubTopic:
Core OS
Tags: