Skip to content

Commit

Permalink
fixed update cache
Browse files Browse the repository at this point in the history
  • Loading branch information
likexian committed Apr 29, 2023
1 parent c57bc87 commit fbac87f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cmd/whois/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ options:
// checkUpdate checks version update
func checkUpdate(updateMessage chan string, version string) {
checkPoint := "https://release.likexian.com/whois/update"
cacheFile := fmt.Sprintf("%s/whois.update.cache", os.TempDir())
cacheFile := fmt.Sprintf("%s/whois.update.%s.cache", os.TempDir(), version)

req := &xversion.CheckUpdateRequest{
Product: "whois",
Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ module github.com/likexian/whois
go 1.20

require (
github.com/likexian/gokit v0.25.11
github.com/likexian/whois-parser v1.24.5
golang.org/x/net v0.8.0
github.com/likexian/gokit v0.25.13
github.com/likexian/whois-parser v1.24.8
golang.org/x/net v0.9.0
)

require golang.org/x/text v0.8.0 // indirect
require golang.org/x/text v0.9.0 // indirect
16 changes: 8 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
github.com/likexian/gokit v0.25.11 h1:o5H5JgVtBYBQn0QX30zE5+V8j2rgLTDoZWAO8xLFFfY=
github.com/likexian/gokit v0.25.11/go.mod h1:IKRQFPah2KQ0HL3iVjaOvFbx2apkSdFicGmsA0A4a1c=
github.com/likexian/whois-parser v1.24.5 h1:q9bxJ1EyokyToAOOrzPh7KoVMqc3j+4blZJxGNZb5XA=
github.com/likexian/whois-parser v1.24.5/go.mod h1:MJN8IUeQ55VSG2OCB01a88T6V6VQm/UYxKLQySSqdSc=
golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
github.com/likexian/gokit v0.25.13 h1:p2Uw3+6fGG53CwdU2Dz0T6bOycdb2+bAFAa3ymwWVkM=
github.com/likexian/gokit v0.25.13/go.mod h1:qQhEWFBEfqLCO3/vOEo2EDKd+EycekVtUK4tex+l2H4=
github.com/likexian/whois-parser v1.24.8 h1:41RCpnRXSvlo9U7vPuLORi187UkTURH+8HXUcGdnhZA=
github.com/likexian/whois-parser v1.24.8/go.mod h1:b6STMHHDaSKbd4PzGrP50wWE5NzeBUETa/hT9gI0G9I=
golang.org/x/net v0.9.0 h1:aWJ/m6xSmxWBx+V0XRHTlrYrPG56jKsLdTFmsSsCzOM=
golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns=
golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE=
golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
2 changes: 1 addition & 1 deletion whois.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ type Client struct {

// Version returns package version
func Version() string {
return "1.14.5"
return "1.14.7"
}

// Author returns package author
Expand Down

0 comments on commit fbac87f

Please sign in to comment.