Commit Graph
1 Commits
  • fix(sub): gate the VLESS flow in JSON subscriptions like raw and Clash links
    genVless emitted client.Flow unconditionally, while the raw link
    (service.go:806) and the Clash proxy (clash_service.go:251) both gate it
    behind vlessFlowAllowed. A flow_override left on client_inbounds after its
    inbound moved to a transport Vision cannot use -- ws, grpc, httpupgrade --
    therefore survived only into the JSON subscription, handing that client an
    outbound xray-core rejects while its other two formats were correct.
    
    Apply the same gate at the call site, reading the network from the
    per-host stream so a host that rewrites the transport is judged on what it
    actually emits. Verified by seeding a flow_override on a ws+tls inbound:
    before, raw and Clash dropped the flow and JSON kept it.