1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-26 09:25:23 +00:00

sniff on TCP only

This commit is contained in:
Darien Raymond 2018-05-20 21:29:40 +02:00
parent 3d0e0e2ac8
commit 0b5c638028
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -132,7 +132,7 @@ func (d *DefaultDispatcher) Dispatch(ctx context.Context, destination net.Destin
inbound, outbound := d.getLink(ctx)
snifferList := proxyman.ProtocolSniffersFromContext(ctx)
if destination.Address.Family().IsDomain() || len(snifferList) == 0 {
if destination.Address.Family().IsDomain() || destination.Network != net.Network_TCP || len(snifferList) == 0 {
go d.routedDispatch(ctx, outbound, destination)
} else {
go func() {