Skip to content

Commit

Permalink
refactor: self require as replace in sub packages
Browse files Browse the repository at this point in the history
  • Loading branch information
developStorm committed Oct 31, 2024
1 parent 0ee4d0c commit 9a19156
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dnsutil/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package dnsutil
import (
"strings"

"github.com/zmap/dns"
"github.com/miekg/dns"
)

// AddOrigin adds origin to s if s is not already a FQDN.
Expand Down
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"
"net"

"github.com/zmap/dns"
"github.com/miekg/dns"
)

// Retrieve the MX records for miek.nl.
Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ module github.com/zmap/dns
go 1.19

require (
github.com/miekg/dns v1.1.62
golang.org/x/net v0.28.0
golang.org/x/sync v0.7.0
golang.org/x/sys v0.23.0
golang.org/x/tools v0.22.0
)

replace github.com/miekg/dns => ./

require golang.org/x/mod v0.18.0 // indirect
2 changes: 1 addition & 1 deletion privaterr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"testing"

"github.com/zmap/dns"
"github.com/miekg/dns"
)

const TypeISBN uint16 = 0xFF00
Expand Down

0 comments on commit 9a19156

Please sign in to comment.