mirror of
https://github.com/fosrl/newt.git
synced 2026-09-18 20:09:07 +02:00
Move version print out to binary
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user