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