Move version print out to binary

This commit is contained in:
Owen
2026-09-15 11:08:47 -04:00
parent 0375e25092
commit 0f33f3c253
2 changed files with 2 additions and 2 deletions
+2
View File
@@ -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)
-2
View File
@@ -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)