fix: 删除udp触发的错误逻辑

This commit is contained in:
Skyxim 2022-05-17 21:23:28 +08:00
parent fa9e27c5e4
commit 8b00be9039
2 changed files with 0 additions and 6 deletions

View file

@ -39,9 +39,6 @@ func (f *Fallback) ListenPacketContext(ctx context.Context, metadata *C.Metadata
pc, err := proxy.ListenPacketContext(ctx, metadata, f.Base.DialOptions(opts...)...) pc, err := proxy.ListenPacketContext(ctx, metadata, f.Base.DialOptions(opts...)...)
if err == nil { if err == nil {
pc.AppendToChains(f) pc.AppendToChains(f)
f.onDialSuccess()
} else {
f.onDialFailed()
} }
return pc, err return pc, err

View file

@ -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...)...) pc, err := u.fast(true).ListenPacketContext(ctx, metadata, u.Base.DialOptions(opts...)...)
if err == nil { if err == nil {
pc.AppendToChains(u) pc.AppendToChains(u)
u.onDialSuccess()
} else {
u.onDialFailed()
} }
return pc, err return pc, err