fix: doq maybe crash when use adapter

This commit is contained in:
Skyxim
2022-06-06 21:45:08 +08:00
parent e995003c27
commit 8343c3597e
2 changed files with 10 additions and 2 deletions

View File

@ -7,13 +7,13 @@ import (
"fmt"
"github.com/Dreamacro/clash/component/dialer"
"github.com/Dreamacro/clash/component/resolver"
"github.com/lucas-clemente/quic-go"
"net"
"strconv"
"sync"
"time"
"github.com/Dreamacro/clash/log"
"github.com/lucas-clemente/quic-go"
D "github.com/miekg/dns"
)
@ -174,7 +174,7 @@ func (dc *quicClient) openSession() (quic.Connection, error) {
wrapConn, ok := conn.(*wrapPacketConn)
if !ok {
return nil, fmt.Errorf("quio create packet failed")
return nil, fmt.Errorf("quic create packet failed")
}
udp = wrapConn