Skip to main content

is_internal_proto_id

Function is_internal_proto_id 

Source
pub fn is_internal_proto_id(proto_id: u32) -> bool
Expand description

v1.4.106 ζ28 redo (codex 0532 F3 P2): 判一个 proto_id 是否是 daemon-internal (高位 0x8000_0000 bit set).

daemon-internal proto_id (e.g. TRD_UNSUB_ACC_PUSH_INTERNAL = 0x8000_0000 | 2008 v1.4.102 codex 44 F1 fix) 绝不应从公开 surface (gRPC / raw WS / raw TCP) 进入 — 仅 REST /api/unsub-acc-push handler 内部合成给 router.

公开 surface 看到此 bit set 立即 reject (Forbidden 等价 wire error) 防探测 daemon 内部 routing.