@@ -59,8 +59,6 @@ func init() {
5959 scanCmd .Flags ().String ("domain" , "" , "tunnel domain (required for tunnel/edns/e2e steps)" )
6060 scanCmd .Flags ().String ("pubkey" , "" , "DNSTT public key (enables e2e test)" )
6161 scanCmd .Flags ().String ("cert" , "" , "Slipstream cert path (enables slipstream e2e test)" )
62- scanCmd .Flags ().String ("test-url" , "http://httpbin.org/ip" , "URL to test through tunnel" )
63- scanCmd .Flags ().String ("proxy-auth" , "" , "SOCKS proxy auth as user:pass (for e2e tests)" )
6462 scanCmd .Flags ().Bool ("doh" , false , "scan DoH resolvers instead of UDP" )
6563 scanCmd .Flags ().Bool ("skip-ping" , false , "skip ICMP ping step" )
6664 scanCmd .Flags ().Bool ("skip-nxdomain" , false , "skip NXDOMAIN hijack check" )
@@ -78,8 +76,6 @@ func runScan(cmd *cobra.Command, args []string) error {
7876 domain , _ := cmd .Flags ().GetString ("domain" )
7977 pubkey , _ := cmd .Flags ().GetString ("pubkey" )
8078 certPath , _ := cmd .Flags ().GetString ("cert" )
81- testURL , _ := cmd .Flags ().GetString ("test-url" )
82- proxyAuth , _ := cmd .Flags ().GetString ("proxy-auth" )
8379 dohMode , _ := cmd .Flags ().GetBool ("doh" )
8480 skipPing , _ := cmd .Flags ().GetBool ("skip-ping" )
8581 skipNXD , _ := cmd .Flags ().GetBool ("skip-nxdomain" )
@@ -176,12 +172,6 @@ outputIPs, _ := cmd.Flags().GetString("output-ips")
176172 }
177173 slipstreamBin = bin
178174 }
179- if pubkey != "" || certPath != "" {
180- if _ , err := findBinary ("curl" ); err != nil {
181- return fmt .Errorf ("e2e tests require curl in PATH (not found)" )
182- }
183- }
184-
185175 dur := time .Duration (timeout ) * time .Second
186176 needE2E := pubkey != "" || certPath != ""
187177 var ports chan int
@@ -210,7 +200,7 @@ outputIPs, _ := cmd.Flags().GetString("output-ips")
210200 if domain != "" && pubkey != "" {
211201 steps = append (steps , scanner.Step {
212202 Name : "doh/e2e" , Timeout : time .Duration (e2eTimeout ) * time .Second ,
213- Check : scanner .DoHDnsttCheckBin (dnsttBin , domain , pubkey , testURL , proxyAuth , ports ), SortBy : "e2e_ms" ,
203+ Check : scanner .DoHDnsttCheckBin (dnsttBin , domain , pubkey , ports ), SortBy : "e2e_ms" ,
214204 })
215205 }
216206 } else {
@@ -259,7 +249,7 @@ outputIPs, _ := cmd.Flags().GetString("output-ips")
259249 if domain != "" && certPath != "" {
260250 steps = append (steps , scanner.Step {
261251 Name : "e2e/slipstream" , Timeout : time .Duration (e2eTimeout ) * time .Second ,
262- Check : scanner .SlipstreamCheckBin (slipstreamBin , domain , certPath , testURL , proxyAuth , ports ), SortBy : "e2e_ms" ,
252+ Check : scanner .SlipstreamCheckBin (slipstreamBin , domain , certPath , ports ), SortBy : "e2e_ms" ,
263253 })
264254 }
265255 }
0 commit comments