Commit c748f4ba authored by Sietse Ringers's avatar Sietse Ringers
Browse files

fix: wrong fix of handling non-key files

parent cedac54e
......@@ -111,7 +111,7 @@ func (s *Server) verifyConfiguration(configuration *server.Configuration) error
}
for _, file := range files {
filename := file.Name()
if filepath.Ext(filename) != ".xml" && strings.Count(filename, ".") != 3 {
if filepath.Ext(filename) != ".xml" || strings.Count(filename, ".") != 3 {
s.conf.Logger.Infof("Skipping non-private key file %s encountered in private keys path", filename)
continue
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment