all: allow chosing random address and port for listener

This commit is contained in:
Cuong Manh Le
2023-04-26 18:37:52 +07:00
committed by Cuong Manh Le
parent 69319c6b41
commit c7bad63869
4 changed files with 74 additions and 32 deletions

View File

@@ -271,16 +271,14 @@ The `[listener]` section specifies the ip and port of the local DNS server. You
```
### ip
IP address that serves the incoming requests.
IP address that serves the incoming requests. If `ip` is empty, ctrld will listen on all available addresses.
- Type: string
- Required: yes
- Type: ip address
### port
Port number that the listener will listen on for incoming requests.
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: yes
### 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`.