cmd/ctrld: update config when "--cd" present

This commit is contained in:
Cuong Manh Le
2023-01-06 23:56:26 +07:00
committed by Cuong Manh Le
parent 6edd42629e
commit 9f90811567
3 changed files with 50 additions and 30 deletions

View File

@@ -314,6 +314,17 @@ Above policy will:
- Forward requests on `listener.0` for `test.com` to `upstream.2`. If timeout is reached, retry on `upstream.1`.
- All other requests on `listener.0` that do not match above conditions will be forwarded to `upstream.0`.
An empty upstream would not route the request to any defined upstreams, and use the OS default resolver.
```toml
[listener.0.policy]
name = "OS Resolver"
rules = [
{"*.local" = []},
]
```
#### name
`name` is the name for the policy.