Don't fail init when ipset is not initialized

This commit is contained in:
Andrey Meshkov 2021-01-31 00:07:09 +03:00
parent 4aa6f77a61
commit cd88137333

View file

@ -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