From cd88137333419e954ef929a918b81d2a36da577d Mon Sep 17 00:00:00 2001 From: Andrey Meshkov Date: Sun, 31 Jan 2021 00:07:09 +0300 Subject: [PATCH] Don't fail init when ipset is not initialized --- internal/dnsforward/dnsforward.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/dnsforward/dnsforward.go b/internal/dnsforward/dnsforward.go index b3449439..2f8b8c50 100644 --- a/internal/dnsforward/dnsforward.go +++ b/internal/dnsforward/dnsforward.go @@ -198,7 +198,10 @@ func (s *Server) Prepare(config *ServerConfig) error { // -- err := s.ipset.init(s.conf.IPSETList) if err != nil { - return err + // ipset cannot be initialized in a Snap version (and maybe - without root) + // this needs to be handled properly + // TODO: Handle this properly + log.Info("Cannot initialize ipset module due to %v", err) } // Prepare DNS servers settings