config: add CertificateFiles to FileWatcherSource list (#1878)

This commit is contained in:
Travis Groth 2021-02-11 17:58:58 -05:00 committed by GitHub
parent 963399b53d
commit 9fd58f9b8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -186,6 +186,11 @@ func (src *FileWatcherSource) check(cfg *Config) {
cfg.Options.KeyFile,
cfg.Options.PolicyFile,
}
for _, pair := range cfg.Options.CertificateFiles {
fs = append(fs, pair.CertFile, pair.KeyFile)
}
for _, f := range fs {
_, _ = h.Write([]byte{0})
bs, err := ioutil.ReadFile(f)