mirror of
https://github.com/yggdrasil-network/yggstack.git
synced 2025-04-28 14:15:07 +03:00
Force 'AdminListen' option to 'none' for yggstack
Yggstack is supposed to run as non-privileged user and while admin socket is necessary in some cases like running a standalone node, most uses will not require it. Expose it but set to "none" so users can edit configuration later on. Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
This commit is contained in:
parent
a0295906ba
commit
ad93f2c1c7
1 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ func main() {
|
||||||
_ = f.Close()
|
_ = f.Close()
|
||||||
|
|
||||||
case *genconf:
|
case *genconf:
|
||||||
cfg.AdminListen = ""
|
cfg.AdminListen = "none"
|
||||||
var bs []byte
|
var bs []byte
|
||||||
if *confjson {
|
if *confjson {
|
||||||
bs, err = json.MarshalIndent(cfg, "", " ")
|
bs, err = json.MarshalIndent(cfg, "", " ")
|
||||||
|
@ -161,7 +161,7 @@ func main() {
|
||||||
return
|
return
|
||||||
|
|
||||||
case *normaliseconf:
|
case *normaliseconf:
|
||||||
cfg.AdminListen = ""
|
cfg.AdminListen = "none"
|
||||||
if cfg.PrivateKeyPath != "" {
|
if cfg.PrivateKeyPath != "" {
|
||||||
cfg.PrivateKey = nil
|
cfg.PrivateKey = nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue