Skip to content

Commit

Permalink
update: remove deprecated callback (#535)
Browse files Browse the repository at this point in the history
* update: remove deprecated callback

* misc update

---------

Co-authored-by: sandeep <[email protected]>
Co-authored-by: Sandeep Singh <[email protected]>
  • Loading branch information
3 people authored Apr 21, 2023
1 parent 770429e commit 3913979
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmd/interactsh-client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func main() {
}

if !cliOptions.DisableUpdateCheck {
latestVersion, err := updateutils.GetVersionCheckCallback("interactsh-client")()
latestVersion, err := updateutils.GetToolVersionCallback("interactsh-client", options.Version)()
if err != nil {
if cliOptions.Verbose {
gologger.Error().Msgf("interactsh version check failed: %v", err.Error())
Expand Down
2 changes: 1 addition & 1 deletion cmd/interactsh-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func main() {
}

if !cliOptions.DisableUpdateCheck {
latestVersion, err := updateutils.GetVersionCheckCallback("interactsh-client")()
latestVersion, err := updateutils.GetToolVersionCallback("interactsh-server", options.Version)()
if err != nil {
if cliOptions.Verbose {
gologger.Error().Msgf("interactsh version check failed: %v", err.Error())
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ require (
github.com/projectdiscovery/gologger v1.1.8
github.com/projectdiscovery/retryabledns v1.0.21
github.com/projectdiscovery/retryablehttp-go v1.0.15
github.com/projectdiscovery/utils v0.0.21
github.com/projectdiscovery/utils v0.0.24
github.com/remeh/sizedwaitgroup v1.0.0
github.com/rs/xid v1.5.0
github.com/stretchr/testify v1.8.2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ github.com/projectdiscovery/retryabledns v1.0.21 h1:vOpPQR1q8Z824uoA8JXCI/RyvDAs
github.com/projectdiscovery/retryabledns v1.0.21/go.mod h1:6oTPKMRlKZ7lIIEzTH723K6RvNRjmm6fe9br4Dom3UI=
github.com/projectdiscovery/retryablehttp-go v1.0.15 h1:kP9x9f++QimRwb8ABqnI1dhEymvnZXS2Wp2Zs4rWk/c=
github.com/projectdiscovery/retryablehttp-go v1.0.15/go.mod h1:+OzSFUv3sQcPt+MgbNx6X/Q3ESxqPUQSphqG5kxoIgI=
github.com/projectdiscovery/utils v0.0.21 h1:tmZmwQHSOkWswwZO6rlt2UNv5JIn8AYR5N41t9EYnig=
github.com/projectdiscovery/utils v0.0.21/go.mod h1:954dxg9AWmNmcNQdc5BpucghibSvC76prWLQFrv14FQ=
github.com/projectdiscovery/utils v0.0.24 h1:3kI8B5/ajKANPM7dfVHyTPFegy0OrVOxU+a3DXvX2a8=
github.com/projectdiscovery/utils v0.0.24/go.mod h1:4ynwLqKugrMQzNjBJbzSDRBtadPwat/lwrXhWA6gdAE=
github.com/remeh/sizedwaitgroup v1.0.0 h1:VNGGFwNo/R5+MJBf6yrsr110p0m4/OX4S3DCy7Kyl5E=
github.com/remeh/sizedwaitgroup v1.0.0/go.mod h1:3j2R4OIe/SeS6YDhICBy22RWjJC5eNCJ1V+9+NVNYlo=
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
Expand Down
3 changes: 1 addition & 2 deletions pkg/options/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ func ShowBanner() {
func GetUpdateCallback(assetName string) func() {
return func() {
ShowBanner()
updateutils.GHAssetName = assetName
updateutils.GetUpdateToolCallback("interactsh", Version)()
updateutils.GetUpdateToolFromRepoCallback(assetName, Version, "interactsh")()
}
}

0 comments on commit 3913979

Please sign in to comment.