all: add client id preference config param

So client can chose how client id is generated.
This commit is contained in:
Cuong Manh Le
2023-12-05 21:58:34 +07:00
committed by Cuong Manh Le
parent c3ff8182af
commit 7591a0ccc6
6 changed files with 37 additions and 9 deletions

View File

@@ -215,6 +215,17 @@ DHCP leases file format.
- Valid values: `dnsmasq`, `isc-dhcp`
- Default: ""
### client_id_preference
Decide how client ID has is generated.
If `host` -> client id will be a `hash(hostname)`.
If `mac` -> client id will be `hash(mac)`.
- Type: string
- Required: no
- Valid values: `mac`, `host`
- Default: ""
## Upstream
The `[upstream]` section specifies the DNS upstream servers that `ctrld` will forward DNS requests to.