Do notvtry to open admin socket in autoconf too

Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
This commit is contained in:
Vasyl Gello 2024-03-24 19:44:52 +02:00
parent 7b5300a476
commit edbaa72445

View file

@ -95,6 +95,8 @@ func main() {
return return
case *autoconf: case *autoconf:
// Force AdminListen to none in yggstack
cfg.AdminListen = "none"
// Use an autoconf-generated config, this will give us random keys and // Use an autoconf-generated config, this will give us random keys and
// port numbers, and will use an automatically selected TUN interface. // port numbers, and will use an automatically selected TUN interface.
@ -114,6 +116,7 @@ func main() {
_ = f.Close() _ = f.Close()
case *genconf: case *genconf:
// Force AdminListen to none in yggstack
cfg.AdminListen = "none" cfg.AdminListen = "none"
var bs []byte var bs []byte
if *confjson { if *confjson {