From ff96740ac79567da816587672fd757a1fd9bdeb9 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Sat, 15 Jul 2023 20:12:14 +0100 Subject: [PATCH] Fail to start if no configuration provided --- cmd/yggdrasil/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/yggdrasil/main.go b/cmd/yggdrasil/main.go index 8de2c868..a770e4e2 100644 --- a/cmd/yggdrasil/main.go +++ b/cmd/yggdrasil/main.go @@ -135,6 +135,7 @@ func main() { if *getaddr || *getsnet { fmt.Println("\nError: You need to specify some config data using -useconf or -useconffile.") } + return } privateKey := ed25519.PrivateKey(cfg.PrivateKey)