The flowback solution of HarmonyOS 5 failed due to the anti-loop mechanism. (#1514)

This commit is contained in:
韩嘉乐
2025-10-25 00:17:24 +08:00
committed by GitHub
parent 71679e889a
commit 26d002bc2b
5 changed files with 26 additions and 88 deletions

View File

@@ -1218,10 +1218,13 @@ impl PeerManager {
let hdr = msg.mut_peer_manager_header().unwrap();
hdr.to_peer_id.set(*peer_id);
if not_send_to_self && *peer_id == self.my_peer_id {
// the packet may be sent to vpn portal, so we just set flags instead of drop it
hdr.set_not_send_to_tun(true);
hdr.set_no_proxy(true);
#[cfg(not(target_env = "ohos"))]
{
if not_send_to_self && *peer_id == self.my_peer_id {
// the packet may be sent to vpn portal, so we just set flags instead of drop it
hdr.set_not_send_to_tun(true);
hdr.set_no_proxy(true);
}
}
self.self_tx_counters