Skip to content

Commit 0b74458

Browse files
committed
fix After the update, the version has not changed. #104 2022-09-03
1 parent 1ad7c1f commit 0b74458

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/util/update.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import (
1111
"runtime"
1212
)
1313

14-
var Version = "999.9.9"
14+
const Version = `2.7.9`
15+
1516
var MyName = "scan4all"
1617

1718
// 更新到最新版本

pkg/naabu/v2/pkg/runner/options.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ type Options struct {
7575
// OnResultCallback (hostname, ip, ports)
7676
type OnResultCallback func(string, string, []int)
7777

78-
const Version = `2.0.7`
79-
8078
// ParseOptions parses the command line flags provided by a user
8179
func ParseOptions() *Options {
8280
options := &Options{}
@@ -183,7 +181,7 @@ func ParseOptions() *Options {
183181
//showBanner()
184182

185183
if options.Version {
186-
gologger.Info().Msgf("Current Version: %s\n", Version)
184+
gologger.Info().Msgf("Current Version: %s\n", util.Version)
187185
os.Exit(0)
188186
}
189187

0 commit comments

Comments
 (0)