fix: go dependencies

This commit is contained in:
braginini
2021-05-01 15:51:02 +02:00
parent ff225a485a
commit 6b5fe4f082
2 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,11 @@ var (
Run: func(cmd *cobra.Command, args []string) {
InitLog(logLevel)
if _, err := os.Stat(configPath); !os.IsNotExist(err) {
log.Warnf("config already exists under path %s", configPath)
os.Exit(ExitSetupFailed)
}
if wgKey == "" {
wgKey = generateKey()
}