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

chore: upgrade to dnscore@v0.5.0 #29

Merged
merged 1 commit into from
Nov 25, 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 go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.23.3
require (
github.com/miekg/dns v1.1.62
github.com/rbmk-project/common v0.3.0
github.com/rbmk-project/dnscore v0.4.0
github.com/rbmk-project/dnscore v0.5.0
github.com/rogpeppe/go-internal v1.13.1
golang.org/x/sys v0.27.0
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rbmk-project/common v0.3.0 h1:g9iX/lg5kvzmgxgr4xbkcCjA2jfazM1zAyLKzLD/3iU=
github.com/rbmk-project/common v0.3.0/go.mod h1:uzrFIJl8SEOpgS2pSeBFLUgqc4D1lIcGk/EYuxkFO0U=
github.com/rbmk-project/dnscore v0.4.0 h1:g20UR4CfVL14sRQxScPHCBRokTB4fN2b0mxen1x8U/0=
github.com/rbmk-project/dnscore v0.4.0/go.mod h1:ENuxqOG44rTIByt412eghWPRvTg/G5RkE6Truv+tapQ=
github.com/rbmk-project/dnscore v0.5.0 h1:GaWr4SUJFJzjAgkZ9kJdS0I0BWHPnObD/lZaZzPfB9c=
github.com/rbmk-project/dnscore v0.5.0/go.mod h1:ENuxqOG44rTIByt412eghWPRvTg/G5RkE6Truv+tapQ=
github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII=
github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
Expand Down
2 changes: 1 addition & 1 deletion netsim/example_censor_dns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func Example_censorDNS() {
}

// Configure transport to use our simulated network
txp := dnscore.NewTransport()
txp := &dnscore.Transport{}
txp.DialContext = clientStack.DialContext

// Query 8.8.8.8 over UDP and collect responses
Expand Down
2 changes: 1 addition & 1 deletion netsim/netstack/dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (ns *Stack) DialContext(ctx context.Context, network, address string) (net.
// Configure dnscore and netcore to perform the actual dial.
netx := netcore.NewNetwork()
netx.DialContextFunc = ns.dialContext
reso := dnscore.NewResolver()
reso := &dnscore.Resolver{}
reso.Config = dnscore.NewConfig()
for _, server := range ns.resolvers {
reso.Config.AddServer(server)
Expand Down