Skip to content

Commit

Permalink
Merge pull request v2ray#1642 from kslr/master
Browse files Browse the repository at this point in the history
return error instead of panic, fixes v2ray#1638
  • Loading branch information
kslr authored Apr 14, 2019
2 parents d21d02d + 66cba31 commit d66c389
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/dns/udpns.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d66c389

Please sign in to comment.