Skip to content

Commit

Permalink
fix After the update, the version has not changed. #104 2022-09-03
Browse files Browse the repository at this point in the history
  • Loading branch information
hktalent committed Sep 3, 2022
1 parent 1ad7c1f commit 0b74458
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/util/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import (
"runtime"
)

var Version = "999.9.9"
const Version = `2.7.9`

var MyName = "scan4all"

// 更新到最新版本
Expand Down
4 changes: 1 addition & 3 deletions pkg/naabu/v2/pkg/runner/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit 0b74458

Please sign in to comment.