From 066f939294caa3a8f7c394d7699322b3eba111c5 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Thu, 8 Apr 2021 18:10:53 +0200 Subject: [PATCH] fix version display --- cmd/wg-portal/main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/wg-portal/main.go b/cmd/wg-portal/main.go index c21ae09..b776558 100644 --- a/cmd/wg-portal/main.go +++ b/cmd/wg-portal/main.go @@ -13,15 +13,13 @@ import ( "github.com/sirupsen/logrus" ) -var Version = "unknown (local build)" - func main() { _ = setupLogger(logrus.StandardLogger()) c := make(chan os.Signal, 1) signal.Notify(c, syscall.SIGINT, syscall.SIGTERM, syscall.SIGHUP) - logrus.Infof("starting WireGuard Portal Server [%s]...", Version) + logrus.Infof("starting WireGuard Portal Server [%s]...", server.Version) // Context for clean shutdown ctx, cancel := context.WithCancel(context.Background())