Making suggested comments

This commit is contained in:
Chris Chapman 2022-09-30 15:03:33 -07:00
parent 46bea72212
commit d7b5351b66
No known key found for this signature in database
GPG Key ID: CE72AB12033D3DEB
1 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,8 @@ func (b *BufferResponseWriter) TsigTimersOnly(bool) {}
// After a call to Hijack(), the DNS package will not do anything with the connection. { // After a call to Hijack(), the DNS package will not do anything with the connection. {
func (b *BufferResponseWriter) Hijack() {} func (b *BufferResponseWriter) Hijack() {}
// Query is a gRPC endpoint that will serve dns requests. It will be consumed primarily by the
// consul dataplane to proxy dns requests to consul.
func (s *Server) Query(ctx context.Context, req *pbdns.QueryRequest) (*pbdns.QueryResponse, error) { func (s *Server) Query(ctx context.Context, req *pbdns.QueryRequest) (*pbdns.QueryResponse, error) {
pr, ok := peer.FromContext(ctx) pr, ok := peer.FromContext(ctx)
if !ok { if !ok {