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:
@ -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, "", " ")
|
||||
|
Reference in New Issue
Block a user