Fail to start if no configuration provided

This commit is contained in:
Neil Alexander 2023-07-15 20:12:14 +01:00
parent 7f94463332
commit ff96740ac7
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -135,6 +135,7 @@ func main() {
if *getaddr || *getsnet { if *getaddr || *getsnet {
fmt.Println("\nError: You need to specify some config data using -useconf or -useconffile.") fmt.Println("\nError: You need to specify some config data using -useconf or -useconffile.")
} }
return
} }
privateKey := ed25519.PrivateKey(cfg.PrivateKey) privateKey := ed25519.PrivateKey(cfg.PrivateKey)