mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 06:05:06 +03:00
Fix -normaliseconf
when using PrivateKeyPath
This commit is contained in:
parent
39c4b24395
commit
f6f669617f
2 changed files with 5 additions and 2 deletions
|
@ -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, "", " ")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue