all: allowing config defined discover ptr endpoints

The default gateway is usually the DNS server in normal home network
setup for most users. However, there's case that it is not, causing
discover ptr failed.

This commit add discover_ptr_endpoints config parameter, so users can
define what DNS nameservers will be used.
This commit is contained in:
Cuong Manh Le authored and Cuong Manh Le committed 2023-11-16 20:57:52 +07:00
1 parent d01f5c2777
commit 180eae60f2
4 files changed
+68 -21

No files matched your search

+16
View File
@@ -193,6 +193,22 @@ Perform LAN client discovery using PTR queries.
- Required: no
- Default: true
### discover_ptr_endpoints
List of DNS nameservers used for PTR discovery.
Each entry can be either "ip" (default port 53) or "ip:port" pair. Invalid entry will be ignored.
- Type: array of string
- Required: no
- Default: []
Example:
```toml
[service]
discover_ptr_endpoints = ["192.168.1.1", "192.168.2.1:5354"]
```
### discover_hosts
Perform LAN client discovery using hosts file.