Fix UoT UDP address

This commit is contained in:
世界 2023-03-03 11:34:51 +08:00
parent 0b15de461b
commit 19b15e0d10
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -579,7 +579,7 @@ func (r *Router) RouteConnection(ctx context.Context, conn net.Conn, metadata ad
return vmess.HandleMuxConnection(ctx, conn, adapter.NewUpstreamHandler(metadata, r.RouteConnection, r.RoutePacketConnection, r))
case uot.UOTMagicAddress:
r.logger.InfoContext(ctx, "inbound UoT connection")
metadata.Destination = M.Socksaddr{}
metadata.Destination = M.Socksaddr{Addr: netip.IPv4Unspecified()}
return r.RoutePacketConnection(ctx, uot.NewClientConn(conn), metadata)
}
if metadata.InboundOptions.SniffEnabled {