From 0b5c63802864331b33170de31aa856b9131b0865 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Sun, 20 May 2018 21:29:40 +0200 Subject: [PATCH] sniff on TCP only --- app/dispatcher/default.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dispatcher/default.go b/app/dispatcher/default.go index 68e25f7af..863793fb9 100644 --- a/app/dispatcher/default.go +++ b/app/dispatcher/default.go @@ -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() {