From 4bf96c7eb57759fdcc3304b2767500b5e3109b95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Mon, 28 Nov 2022 16:06:54 +0800 Subject: [PATCH] Fix quic stub --- include/quic_stub.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/quic_stub.go b/include/quic_stub.go index 6557565a..a914f45f 100644 --- a/include/quic_stub.go +++ b/include/quic_stub.go @@ -12,6 +12,7 @@ import ( "github.com/sagernet/sing-box/transport/v2ray" "github.com/sagernet/sing-dns" E "github.com/sagernet/sing/common/exceptions" + "github.com/sagernet/sing/common/logger" M "github.com/sagernet/sing/common/metadata" N "github.com/sagernet/sing/common/network" ) @@ -19,7 +20,7 @@ import ( const WithQUIC = false func init() { - dns.RegisterTransport([]string{"quic", "h3"}, func(ctx context.Context, dialer N.Dialer, link string) (dns.Transport, error) { + dns.RegisterTransport([]string{"quic", "h3"}, func(ctx context.Context, logger logger.ContextLogger, dialer N.Dialer, link string) (dns.Transport, error) { return nil, C.ErrQUICNotIncluded }) v2ray.RegisterQUICConstructor(