Skip to main content

ips_for_web_identity

Function ips_for_web_identity 

Source
pub fn ips_for_web_identity(
    snapshot: &CommonConfigSnapshot,
    identity: u32,
) -> Vec<(String, u16)>
Expand description

从 snapshot 取 WebTCP-short identity 对应的 IP 池。

broker_auth 的 C++ 主路径是 WebTCP-short(CMD 65507),目标 IP 来自 commconfig guaranteed_ip_for_conn 的 10100..10107 identity。这个 helper 只返回服务端下发值;需要完整 fallback 链时用 webtcp_addrs_for_identity