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:
Vasyl Gello 2023-11-28 05:57:43 +02:00
parent a0295906ba
commit ad93f2c1c7

View file

@ -114,7 +114,7 @@ func main() {
_ = f.Close()
case *genconf:
cfg.AdminListen = ""
cfg.AdminListen = "none"
var bs []byte
if *confjson {
bs, err = json.MarshalIndent(cfg, "", " ")
@ -161,7 +161,7 @@ func main() {
return
case *normaliseconf:
cfg.AdminListen = ""
cfg.AdminListen = "none"
if cfg.PrivateKeyPath != "" {
cfg.PrivateKey = nil
}