Update comment

This commit is contained in:
Chris Chapman 2022-09-30 09:35:01 -07:00
parent c7d55c465f
commit 8e44a8c644
No known key found for this signature in database
GPG Key ID: CE72AB12033D3DEB
1 changed files with 2 additions and 1 deletions

View File

@ -103,7 +103,8 @@ func (s *Server) Query(ctx context.Context, req *pbdns.QueryRequest) (*pbdns.Que
var local net.Addr
var remote net.Addr
// We do this so that we switch to udp/tcp when handling the request since it will be proxied
// through consul through gRPC and we need to 'fake' the protocol to get the correct response
// through consul through gRPC and we need to 'fake' the protocol so that the message is trimmed
// according to wether it is UDP or TCP.
switch req.GetProtocol() {
case pbdns.Protocol_PROTOCOL_TCP:
remote = pr.Addr