fix version display

This commit is contained in:
Christoph Haas 2021-04-08 18:10:53 +02:00
parent 17bc297d77
commit 066f939294

View File

@ -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())