Skip to content

Commit

Permalink
Merge pull request #55 from hktalent/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
hktalent authored Aug 1, 2022
2 parents 5da475c + 40c30e6 commit 861136d
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 5 deletions.
26 changes: 26 additions & 0 deletions .github/build/mac_arm64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
project_name: scan4all
builds:
- id: scan4all-darwin
ldflags:
- -s -w
binary: scan4all
env:
- CGO_ENABLED=1
main: main.go
goos:
- darwin
goarch:
- arm64

archives:
- format: zip
replacements:
darwin: macOS

checksum:
name_template: "{{ .ProjectName }}-mac-arm64-checksums.txt"
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,26 @@ on:
workflow_dispatch:

jobs:
build-mac-arm:
runs-on: macos-latest
steps:
- name: Code checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Install Dependences
run: brew install libpcap
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release -f .github/build/mac_arm64.yml --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-mac:
runs-on: macos-latest
steps:
Expand Down
22 changes: 19 additions & 3 deletions projectdiscovery/nuclei_Yaml/nclruner/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,14 +293,30 @@ func (r *Runner) Close() {
if r.projectFile != nil {
r.projectFile.Close()
}
r.hmapInputProvider.Close()
if nil != r.hmapInputProvider {
r.hmapInputProvider.Close()
}
protocolinit.Close()
if r.pprofServer != nil {
_ = r.pprofServer.Shutdown(context.Background())
}
if r.interactsh != nil {
r.interactsh.Close()
//if r.interactsh != nil {
// r.interactsh.Close()
//}
if nil != r.issuesClient {
r.issuesClient.Close()
}
if nil != r.progress {
r.progress.Stop()
}
if nil != r.browser {
r.browser.Close()
r.browser = nil
}
if nil != r.pprofServer {
r.pprofServer.Close()
}

}

// RunEnumeration sets up the input layer for giving input nuclei.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 861136d

Please sign in to comment.