From 0f33f3c253c3aa6bd90eb3726f2bc942c726a919 Mon Sep 17 00:00:00 2001 From: Owen Date: Tue, 8 Sep 2026 14:06:40 -0400 Subject: [PATCH] Move version print out to binary --- main.go | 2 ++ newtconfig/newtconfig.go | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 67190d9..d9a9a17 100644 --- a/main.go +++ b/main.go @@ -72,6 +72,8 @@ func runNewtMain(ctx context.Context) { logger.Fatal("Configuration error: %v", err) } + logger.Info("Newt version %s", cfg.Version) + if cfg.UseNativeMainInterface { if err := permissions.CheckNativeInterfacePermissions(); err != nil { logger.Fatal("Insufficient permissions for native main tunnel interface: %v", err) diff --git a/newtconfig/newtconfig.go b/newtconfig/newtconfig.go index b6071d6..dc62750 100644 --- a/newtconfig/newtconfig.go +++ b/newtconfig/newtconfig.go @@ -602,8 +602,6 @@ func Load(opts Options) (newtpkg.Config, error) { os.Exit(0) } - logger.Info("Newt version %s", opts.Version) - // Parse port if portStr != "" { portInt, err := strconv.Atoi(portStr)