1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-02-20 23:47:21 -05:00

Rename internal dns protocol

This commit is contained in:
世界 2021-11-03 20:55:18 +08:00
parent 4736d3b844
commit 63229aff82
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
2 changed files with 2 additions and 2 deletions

View File

@ -203,7 +203,7 @@ func (s *TCPNameServer) sendQuery(ctx context.Context, domain string, clientIP n
}
dnsCtx = session.ContextWithContent(dnsCtx, &session.Content{
Protocol: "dns",
Protocol: "v2ray.dns",
SkipDNSResolve: true,
})

View File

@ -199,7 +199,7 @@ func (s *ClassicNameServer) sendQuery(ctx context.Context, domain string, client
udpCtx = session.ContextWithInbound(udpCtx, inbound)
}
udpCtx = session.ContextWithContent(udpCtx, &session.Content{
Protocol: "dns",
Protocol: "v2ray.dns",
})
s.udpServer.Dispatch(udpCtx, s.address, b)
}