Skip to content

Commit

Permalink
chore: update copyright year, improve boot initialization, and update…
Browse files Browse the repository at this point in the history
… log message

- Update the copyright year from 2023 to 2024 in `.go-header.txt`
- Change the condition for initializing `ipdb` in `OnBoot` function in `boot.go`
- Update the log message in `ChinaRouteCommand` function in `chinaroute.go`

Signed-off-by: ysicing <[email protected]>
  • Loading branch information
ysicing committed Apr 26, 2024
1 parent 4068529 commit bee0800
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .go-header.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2023 ysicing(ysicing.me, [email protected]) All rights reserved.
Copyright (c) 2024 ysicing(ysicing.me, [email protected]) All rights reserved.
Use of this source code is covered by the following dual licenses:
(1) Y PUBLIC LICENSE 1.0 (YPL 1.0)
(2) Affero General Public License 3.0 (AGPL 3.0)
Expand Down
2 changes: 1 addition & 1 deletion cmd/boot/boot.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func initRootDirectory() error {
}

func OnBoot() error {
if environ.GetEnv("TIGA_SKIP_IPDB", "false") == "false" {
if environ.GetEnv("TIGA_IPDB_AUTOUPDATE", "true") == "true" {
ipdb.InitMMDB()
}
return initRootDirectory()
Expand Down
2 changes: 1 addition & 1 deletion cmd/debug/chinaroute.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func ChinaRouteCommand(f factory.Factory) *cobra.Command {
t1 := time.Now()
f.GetLog().Info("正在测试三网回程路由")
ipinfo := myip.NewIPInfoIO().IP()
f.GetLog().Infof("国家: %s 城市: %s 服务商: %s", color.SGreen(ipinfo.Country), color.SGreen(ipinfo.City), color.SGreen(ipinfo.Org))
f.GetLog().Infof("国家或地区: %s 城市: %s 服务商: %s", color.SGreen(ipinfo.Country), color.SGreen(ipinfo.City), color.SGreen(ipinfo.Org))

for i := range chinaroute.ChinaIPS {
go chinaroute.ChinaTrace(c, i)
Expand Down

0 comments on commit bee0800

Please sign in to comment.