From 92d22b25e401e29ffdbf7d5136bb2016d37570d1 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 7 Aug 2021 18:50:40 +0100 Subject: [PATCH] config: Tidy up ipif setting We can and should just use `ordinary(..,Global)` directly. Signed-off-by: Ian Jackson --- src/config.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/config.rs b/src/config.rs index 557602e..c373549 100644 --- a/src/config.rs +++ b/src/config.rs @@ -671,10 +671,7 @@ impl<'c> ResolveContext<'c> { assert_eq!(skl, SKL::PerClient); // we tolerate it in per-client sections match self.end { LinkEnd::Client => self.ordinary(key, SKL::PerClient)?, - LinkEnd::Server => { - self.first_of(key, SKL::Global)? - .unwrap_or_default() - }, + LinkEnd::Server => self.ordinary(key, SKL::Global)?, } } -- 2.30.2