4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-06-17 02:26:07 +00:00

Fix -normaliseconf when using PrivateKeyPath

This commit is contained in:
Neil Alexander
2023-11-26 16:20:52 +00:00
parent 39c4b24395
commit f6f669617f
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, "", " ")