mirror of
https://github.com/status-im/consul.git
synced 2025-02-23 02:48:19 +00:00
Update comment
This commit is contained in:
parent
f22c79f5c2
commit
a05563b788
@ -103,7 +103,8 @@ func (s *Server) Query(ctx context.Context, req *pbdns.QueryRequest) (*pbdns.Que
|
|||||||
var local net.Addr
|
var local net.Addr
|
||||||
var remote 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
|
// 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() {
|
switch req.GetProtocol() {
|
||||||
case pbdns.Protocol_PROTOCOL_TCP:
|
case pbdns.Protocol_PROTOCOL_TCP:
|
||||||
remote = pr.Addr
|
remote = pr.Addr
|
||||||
|
Loading…
x
Reference in New Issue
Block a user