Don't fail init when ipset is not initialized
This commit is contained in:
parent
4aa6f77a61
commit
cd88137333
|
@ -198,7 +198,10 @@ func (s *Server) Prepare(config *ServerConfig) error {
|
||||||
// --
|
// --
|
||||||
err := s.ipset.init(s.conf.IPSETList)
|
err := s.ipset.init(s.conf.IPSETList)
|
||||||
if err != nil {
|
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
|
// Prepare DNS servers settings
|
||||||
|
|
Loading…
Reference in New Issue