Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker build + go mod fix + no color env support #595

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Base
FROM golang:1.20.5-alpine AS builder
FROM golang:1.21.4-alpine AS builder

RUN apk add --no-cache build-base
WORKDIR /app
Expand Down
2 changes: 0 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ module github.com/projectdiscovery/dnsx

go 1.21

replace github.com/projectdiscovery/asnmap v1.0.6 => github.com/projectdiscovery/asnmap v1.0.2-0.20240226223956-a41995ab9075

require (
github.com/logrusorgru/aurora v2.0.3+incompatible
github.com/miekg/dns v1.1.56
Expand Down
2 changes: 1 addition & 1 deletion internal/runner/banner.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const banner = `
const ToolName = `dnsx`

// version is the current version of dnsx
const version = `1.2.0`
const version = `1.2.1`

// showBanner is used to show the banner to the user
func showBanner() {
Expand Down
4 changes: 4 additions & 0 deletions internal/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ func New(options *Options) (*Runner, error) {
}
}

if os.Getenv("NO_COLOR") == "true" {
options.NoColor = true
}

r := Runner{
options: options,
dnsx: dnsX,
Expand Down
Loading