mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-12-01 15:39:44 +00:00
inbound tag for dns requests
This commit is contained in:
4 files changed
+65
-40
No files matched your search
+5
-1
@@ -303,7 +303,11 @@ func (s *ClassicNameServer) sendQuery(ctx context.Context, domain string, option
|
||||
for _, msg := range msgs {
|
||||
b, err := dns.PackMessage(msg)
|
||||
common.Must(err)
|
||||
s.udpServer.Dispatch(context.Background(), s.address, b)
|
||||
udpCtx := context.Background()
|
||||
if inbound := session.InboundFromContext(ctx); inbound != nil {
|
||||
udpCtx = session.ContextWithInbound(udpCtx, inbound)
|
||||
}
|
||||
s.udpServer.Dispatch(udpCtx, s.address, b)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user