Skip to content

Commit

Permalink
docker build + go mod fix + no color env support (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsandeep committed Mar 4, 2024
1 parent ac6b3a3 commit 5fd3ce7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
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

0 comments on commit 5fd3ce7

Please sign in to comment.