Unverified Commit c6edee2e authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

subfinder: Disable version check on startup (#365710)

parents caffc476 459a729d
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
--- a/v2/pkg/runner/options.go
+++ b/v2/pkg/runner/options.go
@@ -107,7 +107,7 @@ func ParseOptions() *Options {
 
 	flagSet.CreateGroup("update", "Update",
 		flagSet.CallbackVarP(GetUpdateCallback(), "update", "up", "update subfinder to latest version"),
-		flagSet.BoolVarP(&options.DisableUpdateCheck, "disable-update-check", "duc", false, "disable automatic subfinder update check"),
+		flagSet.BoolVarP(&options.DisableUpdateCheck, "disable-update-check", "duc", true, "disable automatic subfinder update check"),
 	)
 
 	flagSet.CreateGroup("output", "Output",
+5 −0
Original line number Diff line number Diff line
@@ -19,6 +19,11 @@ buildGoModule rec {

  modRoot = "./v2";

  patches = [
    # Disable automatic version check
    ./disable-update-check.patch
  ];

  subPackages = [
    "cmd/subfinder/"
  ];