Fix -normaliseconf when using PrivateKeyPath

This commit is contained in:
Neil Alexander 2023-11-26 16:20:52 +00:00
parent 39c4b24395
commit f6f669617f
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 5 additions and 2 deletions

View file

@ -162,6 +162,9 @@ func main() {
case *normaliseconf:
cfg.AdminListen = ""
if cfg.PrivateKeyPath != "" {
cfg.PrivateKey = nil
}
var bs []byte
if *confjson {
bs, err = json.MarshalIndent(cfg, "", " ")