@@ -11,7 +11,6 @@ import (
1111 "github.com/projectdiscovery/nuclei/v2/pkg/core"
1212 "github.com/projectdiscovery/nuclei/v2/pkg/output"
1313 "github.com/projectdiscovery/nuclei/v2/pkg/protocols"
14- "github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/hosterrorscache"
1514 "github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/interactsh"
1615 "github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/protocolinit"
1716 "github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/protocolstate"
@@ -74,8 +73,8 @@ func ParsePoc(templateString string) {
7473}
7574
7675func InitExecuterOptions (dir string ) (err error ) {
77- cache := hosterrorscache .New (30 , hosterrorscache .DefaultMaxHostsCount )
78- defer cache .Close ()
76+ // cache := hosterrorscache.New(30, hosterrorscache.DefaultMaxHostsCount)
77+ // defer cache.Close()
7978
8079 mockProgress := & testutils.MockProgressClient {}
8180 reportingClient , _ := reporting .New (& reporting.Options {}, "" )
@@ -110,16 +109,16 @@ func InitExecuterOptions(dir string) (err error) {
110109 catalog := disk .NewCatalog (dir )
111110
112111 ExecuterOptions = protocols.ExecuterOptions {
113- Output : outputWriter ,
114- Options : options ,
115- Progress : mockProgress ,
116- Catalog : catalog ,
117- IssuesClient : reportingClient ,
118- Interactsh : interactClient ,
119- RateLimiter : ratelimit .New (context .Background (), 150 , time .Second ),
120- HostErrorsCache : cache ,
121- Colorizer : aurora .NewAurora (true ),
122- ResumeCfg : types .NewResumeCfg (),
112+ Output : outputWriter ,
113+ Options : options ,
114+ Progress : mockProgress ,
115+ Catalog : catalog ,
116+ IssuesClient : reportingClient ,
117+ Interactsh : interactClient ,
118+ RateLimiter : ratelimit .New (context .Background (), 150 , time .Second ),
119+ // HostErrorsCache: cache,
120+ Colorizer : aurora .NewAurora (true ),
121+ ResumeCfg : types .NewResumeCfg (),
123122 }
124123
125124 return
@@ -128,10 +127,11 @@ func InitExecuterOptions(dir string) (err error) {
128127func InitEngine (timeout int , proxy string ) (engine * core.Engine ) {
129128 ExecuterOptions .Options .Timeout = timeout
130129 ExecuterOptions .Options .RateLimit = 1
131- ExecuterOptions .Options .ProxyInternal = true
132130 if proxy == "" {
131+ ExecuterOptions .Options .ProxyInternal = false
133132 ExecuterOptions .Options .Proxy = []string {}
134133 } else {
134+ ExecuterOptions .Options .ProxyInternal = true
135135 ExecuterOptions .Options .Proxy = []string {proxy }
136136 }
137137
0 commit comments