From 5c6b3ace4a199343023398afdd3dc747930dfd01 Mon Sep 17 00:00:00 2001 From: Stanislav Chzhen Date: Tue, 12 Sep 2023 17:46:14 +0300 Subject: [PATCH] Pull request 2012: 6158-fix-context-filters Updates #6158. Squashed commit of the following: commit 7d1661c5d7824cd8cd988f8b1d2b1a600aad00ca Author: Stanislav Chzhen Date: Tue Sep 12 17:26:43 2023 +0300 home: fix context filters --- internal/home/dns.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/home/dns.go b/internal/home/dns.go index 59f3a71e..6ae34944 100644 --- a/internal/home/dns.go +++ b/internal/home/dns.go @@ -494,7 +494,9 @@ func closeDNSServer() { Context.dnsServer = nil } - Context.filters.Close() + if Context.filters != nil { + Context.filters.Close() + } if Context.stats != nil { err := Context.stats.Close()