1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-30 21:26:33 -05:00

Merge pull request #1642 from kslr/master

return error instead of panic, fixes #1638
This commit is contained in:
Kslr 2019-04-14 09:01:22 +08:00 committed by GitHub
commit d66c3896ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -367,8 +367,8 @@ func (s *ClassicNameServer) sendQuery(ctx context.Context, domain string, option
msgs := s.buildMsgs(domain, option)
for _, msg := range msgs {
b, err := dns.PackMessage(msg)
common.Must(err)
b, _ := dns.PackMessage(msg)
udpCtx := context.Background()
if inbound := session.InboundFromContext(ctx); inbound != nil {
udpCtx = session.ContextWithInbound(udpCtx, inbound)