Skip to content

Fix a couple of minor issues which prevent compiling. #3

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@ require (
github.com/onsi/gomega v1.5.0 // indirect
github.com/sirupsen/logrus v1.4.0 // indirect
github.com/stretchr/testify v1.3.0 // indirect
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6 // indirect
google.golang.org/grpc v1.18.0
gopkg.in/airbrake/gobrake.v2 v2.0.9 // indirect
gopkg.in/gemnasium/logrus-airbrake-hook.v2 v2.1.2 // indirect
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -204,6 +204,8 @@ golang.org/x/sys v0.0.0-20190209173611-3b5209105503 h1:5SvYFrOM3W8Mexn9/oA44Ji7v
golang.org/x/sys v0.0.0-20190209173611-3b5209105503/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190904154756-749cb33beabd h1:DBH9mDw0zluJT/R+nGuV3jWFWLFaHyYZWD4tOT+cjn0=
golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6 h1:nonptSpoQ4vQjyraW20DXPAglgQfVnM9ZC6MmNLMR60=
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2 h1:z99zHgr7hKfrUcX/KsoJk5FJfjTceCKIp96+biqP4To=
5 changes: 1 addition & 4 deletions seed/dns.go
Original file line number Diff line number Diff line change
@@ -127,7 +127,7 @@ func (ds *DnsServer) handleAAAAQuery(request *dns.Msg, response *dns.Msg,
subDomain string) {

log.Debugf("Handling AAAA query")
chainView, ok := ds.chainViews[subDomain]
chainView := ds.chainViews[subDomain]

nodes := chainView.NetView.RandomSample(3, 25)
for _, n := range nodes {
@@ -368,10 +368,8 @@ func (ds *DnsServer) handleLightningDns(w dns.ResponseWriter, r *dns.Msg) {
switch req.qtype {
case dns.TypeAAAA:
ds.handleAAAAQuery(r, m, req.subdomain)
break
case dns.TypeA:
ds.handleAQuery(r, m, req.subdomain)
break
case dns.TypeSRV:
ds.handleSRVQuery(r, m, req.subdomain)
}
@@ -434,4 +432,3 @@ func (ds *DnsServer) Serve() {
signal.Notify(quitChan, syscall.SIGINT, syscall.SIGTERM)
<-quitChan
}