feat: update to quic-go v0.37.1, module renamed to github.com/apernet/quic-go

This commit is contained in:
Toby
2023-07-31 17:27:23 -07:00
parent b62ef83206
commit c64b36b8f4
15 changed files with 33 additions and 47 deletions

View File

@@ -6,8 +6,8 @@ import (
"net/http"
"sync"
"github.com/quic-go/quic-go"
"github.com/quic-go/quic-go/http3"
"github.com/apernet/quic-go"
"github.com/apernet/quic-go/http3"
"github.com/apernet/hysteria/core/internal/congestion"
"github.com/apernet/hysteria/core/internal/protocol"
@@ -238,7 +238,7 @@ type udpIOImpl struct {
func (io *udpIOImpl) ReceiveMessage() (*protocol.UDPMessage, error) {
for {
msg, err := io.Conn.ReceiveMessage()
msg, err := io.Conn.ReceiveMessage(context.Background())
if err != nil {
// Connection error, this will stop the session manager
return nil, err