Ordinary settings, used by both, not client-specific
----------------------------------------------------
-These are not looked up in the client-specific config sections.
+On the server these are forbidden in the client-specific config
+sections.
``addrs``
Public IP (v4 or v6) address(es) of the server; space-separated.
impl SectionKindList {
fn contains(self, s: &SectionName, end: LinkEnd) -> bool {
match (self, end) {
- (SKL::PerClient,_) => matches!(s, SN::Link(_)
- | SN::Client(_)
- | SN::Server(_)
- | SN::Common),
+ (SKL::PerClient,_) |
+ (SKL::Global, LinkEnd::Client) => matches!(s, SN::Link(_)
+ | SN::Client(_)
+ | SN::Server(_)
+ | SN::Common),
(SKL::Limits,_) => matches!(s, SN::ServerLimit(_)
| SN::GlobalLimit),
- (SKL::Global,_) => matches!(s, SN::Common
- | SN::Server(_)),
+ (SKL::Global, LinkEnd::Server) => matches!(s, SN::Common
+ | SN::Server(_)),
(SKL::Limited,_) => SKL::PerClient.contains(s, end)
| SKL::Limits .contains(s, end),