Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(agent): don't initialize agent when hostname and identity are empty
A MAC address can be empty when the network interface used to communicate with the external world isn't a physical one. In this case, we should be able to define a custom value for MAC's field using the [PREFERRED_IDENTITY] variable. If the hostname is also empty, [PREFERRED_HOSTNAME] could be defined to provide a fallback identifier for the device. This ensures that even if both the MAC address and hostname is missing, we have a way to identify the device uniquely. When it occurs, and no variable was defined, the agent should fail to initialize.
- Loading branch information