pub async fn is_cn() -> boolExpand description
Do the best to guess whether the access point is in China Mainland or not.
Detection priority:
LONGBRIDGE_REGIONenvironment variable (takes precedence).LONGPORT_REGIONenvironment variable (fallback alias).- Process-wide cached result from a previous probe.
- Live HTTP probe to
https://geotest.lbkrs.com— HTTP 200 → CN, anything else (error or non-200) → not CN.