mirror of
https://github.com/coredns/coredns.git
synced 2026-10-24 19:25:43 -04:00
plugin/https3: the limits accept zero, not only positive integers (#8659)
The syntax block advertised POSITIVE_INTEGER for both options, but plugin/https3/setup.go:50 and :66 reject only val < 0, the parser errors say "must be a non-negative integer", plugin/https3/setup_test.go:36-43 accepts "max_streams 0" with shouldErr false, and README.md:22-23 itself tells the reader to "Set to 0". plugin/https/README.md:17-18 already uses NON_NEGATIVE_INTEGER for the same pair. Signed-off-by: yuwk <1729065730@qq.com>
This commit is contained in:
@@ -14,8 +14,8 @@ This plugin can only be used once per HTTPS3 listener block.
|
|||||||
|
|
||||||
```txt
|
```txt
|
||||||
https3 {
|
https3 {
|
||||||
max_streams POSITIVE_INTEGER
|
max_streams NON_NEGATIVE_INTEGER
|
||||||
max_connections POSITIVE_INTEGER
|
max_connections NON_NEGATIVE_INTEGER
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user