Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
c748f4ba
Commit
c748f4ba
authored
May 09, 2019
by
Sietse Ringers
Browse files
fix: wrong fix of handling non-key files
parent
cedac54e
Changes
1
Hide whitespace changes
Inline
Side-by-side
internal/servercore/api.go
View file @
c748f4ba
...
...
@@ -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
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment