mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 17:46:58 -05:00
return error instead of panic, fixes #1638
This commit is contained in:
parent
d21d02d0e0
commit
66cba31123
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user