diff --git a/lib/util/update.go b/lib/util/update.go index 4a1e523ae..1f2ed13bf 100644 --- a/lib/util/update.go +++ b/lib/util/update.go @@ -11,7 +11,8 @@ import ( "runtime" ) -var Version = "999.9.9" +const Version = `2.7.9` + var MyName = "scan4all" // 更新到最新版本 diff --git a/pkg/naabu/v2/pkg/runner/options.go b/pkg/naabu/v2/pkg/runner/options.go index 1e2d49fd0..aa46f5a04 100644 --- a/pkg/naabu/v2/pkg/runner/options.go +++ b/pkg/naabu/v2/pkg/runner/options.go @@ -75,8 +75,6 @@ type Options struct { // OnResultCallback (hostname, ip, ports) type OnResultCallback func(string, string, []int) -const Version = `2.0.7` - // ParseOptions parses the command line flags provided by a user func ParseOptions() *Options { options := &Options{} @@ -183,7 +181,7 @@ func ParseOptions() *Options { //showBanner() if options.Version { - gologger.Info().Msgf("Current Version: %s\n", Version) + gologger.Info().Msgf("Current Version: %s\n", util.Version) os.Exit(0) }