From 8b00be90390347feb119d5547124917ff3a4ccc9 Mon Sep 17 00:00:00 2001 From: Skyxim Date: Tue, 17 May 2022 21:23:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4udp=E8=A7=A6=E5=8F=91?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adapter/outboundgroup/fallback.go | 3 --- adapter/outboundgroup/urltest.go | 3 --- 2 files changed, 6 deletions(-) diff --git a/adapter/outboundgroup/fallback.go b/adapter/outboundgroup/fallback.go index bd8c968a..33ff27eb 100644 --- a/adapter/outboundgroup/fallback.go +++ b/adapter/outboundgroup/fallback.go @@ -39,9 +39,6 @@ func (f *Fallback) ListenPacketContext(ctx context.Context, metadata *C.Metadata pc, err := proxy.ListenPacketContext(ctx, metadata, f.Base.DialOptions(opts...)...) if err == nil { pc.AppendToChains(f) - f.onDialSuccess() - } else { - f.onDialFailed() } return pc, err diff --git a/adapter/outboundgroup/urltest.go b/adapter/outboundgroup/urltest.go index 619070f9..9386e1ef 100644 --- a/adapter/outboundgroup/urltest.go +++ b/adapter/outboundgroup/urltest.go @@ -49,9 +49,6 @@ func (u *URLTest) ListenPacketContext(ctx context.Context, metadata *C.Metadata, pc, err := u.fast(true).ListenPacketContext(ctx, metadata, u.Base.DialOptions(opts...)...) if err == nil { pc.AppendToChains(u) - u.onDialSuccess() - } else { - u.onDialFailed() } return pc, err