From 0bdf4dad1c652bd23b19ba7895da42f615c62f0c Mon Sep 17 00:00:00 2001 From: Alex Feiszli <31018251+afeiszli@users.noreply.github.com> Date: Wed, 28 Jun 2023 14:55:40 -0400 Subject: [PATCH] Revert "wireguard check on startup (#473)" This reverts commit b6dfa1e6acdbd4be7726f290ccdd75278f8b4818. --- cmd/root.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 9ea6347e..8221e84b 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -10,7 +10,6 @@ import ( "github.com/gravitl/netclient/config" "github.com/gravitl/netclient/functions" - "github.com/gravitl/netclient/wireguard" "github.com/spf13/cobra" "github.com/spf13/viper" "golang.org/x/exp/slog" @@ -55,12 +54,6 @@ func initConfig() { flags.BindPFlags(rootCmd.Flags()) config.InitConfig(flags) setupLoging(flags) - nc := wireguard.NewNCIface(config.Netclient(), config.GetNodes()) - if err := nc.Create(); err != nil { - slog.Error("failed to create interface, is wireguard installed?", "error", err) - os.Exit(1) - } - nc.Close() } func setupLoging(flags *viper.Viper) {