all: writing correct routers setup to config file

When running on routers, ctrld leverages default setup, let dnsmasq runs
on port 53, and forward queries to ctrld listener on port 5354. However,
this setup is not serialized to config file, causing confusion to users.

Fixing this by writing the correct routers setup to config file. While
at it, updating documentation to refelct that, and also adding note that
changing default router setup could break things.
This commit is contained in:
Cuong Manh Le
2023-06-21 15:38:08 +07:00
committed by Cuong Manh Le
parent 350d8355b1
commit 50bfed706d
6 changed files with 41 additions and 14 deletions

View File

@@ -316,14 +316,14 @@ IP address that serves the incoming requests. If `ip` is empty, ctrld will liste
- Type: ip address string
- Required: no
- Default: ""
- Default: "" or "127.0.0.1" in [Router Mode](../README.md#router-mode).
### port
Port number that the listener will listen on for incoming requests. If `port` is `0`, a random available port will be chosen.
- Type: number
- Required: no
- Default: 0
- Default: 0 or 5354 in [Router Mode](../README.md#router-mode).
### restricted
If set to `true` makes the listener `REFUSE` DNS queries from all source IP addresses that are not explicitly defined in the policy using a `network`.