Skip to main content

broker_auth_webtcp_identity

Function broker_auth_webtcp_identity 

Source
pub fn broker_auth_webtcp_identity(
    snapshot: &CommonConfigSnapshot,
    client_type: u8,
) -> u32
Expand description

broker_auth 的 WebTCP-short identity 归一入口。

注意:这里故意不接收 broker_id。C++ broker auth 的请求域名按 broker 变化,但 WebTCP-short 目标 identity 来自全局 web_tcp_config。 之前按 broker_id 把 1007 强行送到 CONN_WEB_US,在中国境内网络会 走 www.moomoo.com SNI/IP 池而失败;这与 FTLogin 不一致。