File tree Expand file tree Collapse file tree 4 files changed +68
-5
lines changed
projectdiscovery/nuclei_Yaml/nclruner/runner
vendor/github.com/projectdiscovery/nuclei/v2/pkg/protocols/http Expand file tree Collapse file tree 4 files changed +68
-5
lines changed Original file line number Diff line number Diff line change 1+ env :
2+ - GO111MODULE=on
3+ before :
4+ hooks :
5+ - go mod tidy
6+ project_name : scan4all
7+ builds :
8+ - id : scan4all-darwin
9+ ldflags :
10+ - -s -w
11+ binary : scan4all
12+ env :
13+ - CGO_ENABLED=1
14+ main : main.go
15+ goos :
16+ - darwin
17+ goarch :
18+ - arm64
19+
20+ archives :
21+ - format : zip
22+ replacements :
23+ darwin : macOS
24+
25+ checksum :
26+ name_template : " {{ .ProjectName }}-mac-arm64-checksums.txt"
Original file line number Diff line number Diff line change 66 workflow_dispatch :
77
88jobs :
9+ build-mac-arm :
10+ runs-on : macos-latest
11+ steps :
12+ - name : Code checkout
13+ uses : actions/checkout@v2
14+ with :
15+ fetch-depth : 0
16+ - name : Set up Go
17+ uses : actions/setup-go@v2
18+ with :
19+ go-version : 1.18
20+ - name : Install Dependences
21+ run : brew install libpcap
22+ - name : Run GoReleaser
23+ uses : goreleaser/goreleaser-action@v2
24+ with :
25+ version : latest
26+ args : release -f .github/build/mac_arm64.yml --rm-dist
27+ env :
28+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
929 build-mac :
1030 runs-on : macos-latest
1131 steps :
Original file line number Diff line number Diff line change @@ -293,14 +293,30 @@ func (r *Runner) Close() {
293293 if r .projectFile != nil {
294294 r .projectFile .Close ()
295295 }
296- r .hmapInputProvider .Close ()
296+ if nil != r .hmapInputProvider {
297+ r .hmapInputProvider .Close ()
298+ }
297299 protocolinit .Close ()
298300 if r .pprofServer != nil {
299301 _ = r .pprofServer .Shutdown (context .Background ())
300302 }
301- if r .interactsh != nil {
302- r .interactsh .Close ()
303+ //if r.interactsh != nil {
304+ // r.interactsh.Close()
305+ //}
306+ if nil != r .issuesClient {
307+ r .issuesClient .Close ()
308+ }
309+ if nil != r .progress {
310+ r .progress .Stop ()
311+ }
312+ if nil != r .browser {
313+ r .browser .Close ()
314+ r .browser = nil
315+ }
316+ if nil != r .pprofServer {
317+ r .pprofServer .Close ()
303318 }
319+
304320}
305321
306322// RunEnumeration sets up the input layer for giving input nuclei.
You can’t perform that action at this time.
0 commit comments