Explorar o código

sniff on TCP only

Darien Raymond %!s(int64=7) %!d(string=hai) anos
pai
achega
0b5c638028
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/dispatcher/default.go

+ 1 - 1
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() {