-
Notifications
You must be signed in to change notification settings - Fork 18
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
Support CoreDNS 1.8 #31
Conversation
utils.go
Outdated
b.SocketProto = tap.SocketProtocol_UDP | ||
} | ||
var ta net.Addr = &net.UDPAddr{IP: ip, Port: int(port)} | ||
t := f.net // state.Proto() ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a doubt here, would it not be better to use state.Proto()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jplot Please pass linter and re-commit your changes with flag -s
to pass DCO check.
if tapper == nil { | ||
return nil | ||
} | ||
func toDnstap(f *Fanout, host string, state *request.Request, reply *dns.Msg, start time.Time) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like sync up with https://github.com/coredns/coredns/blob/master/plugin/forward/dnstap.go#L16-L58
But it should be fine for now.
@miekg Let us know if we can make some stuff from the forward plugin reusable.
Signed-off-by: Jonathan PHILIPPE <pretrine@gmail.com>
Note: Linter job has failed with:
Also you can run linter locally via |
Signed-off-by: Jonathan PHILIPPE <pretrine@gmail.com>
@jplot Thanks! |
Closes #30