feat(ohos): add nearby console integration and improve UDP path selection (#2486)

* feat(ohos): complete nearby console integration

Use the core management RPC surface for ephemeral nearby deployments, harden session lifecycle and packet validation, support tunnel-to-NIC packet conversion, and timestamp HarmonyOS traffic samples.

* fix(core): prefer verified UDP hole-punch paths

Treat zero latency as unmeasured so a newly admitted UDP path cannot replace a working relay before liveness is confirmed.

---------

Co-authored-by: FrankHan <frankhan@FrankHans-Mac-mini.local>
This commit is contained in:
韩嘉乐
2026-08-10 14:15:09 +08:00
committed by GitHub
co-authored by FrankHan
parent d375d7e455
commit 23d55373a4
7 changed files with 1276 additions and 17 deletions
+8
View File
@@ -1244,6 +1244,8 @@ dependencies = [
"derive_builder",
"easytier-proto",
"futures",
"getrandom 0.2.16",
"getrandom 0.3.3",
"guarden",
"hmac",
"http-body-util",
@@ -1277,6 +1279,7 @@ dependencies = [
"tracing",
"url",
"uuid",
"wasm-bindgen",
"webpki-roots 0.26.11",
"wildmatch",
"x25519-dalek",
@@ -1288,10 +1291,15 @@ dependencies = [
name = "easytier-ohrs"
version = "0.1.0"
dependencies = [
"anyhow",
"async-trait",
"base64 0.22.1",
"bytes",
"easytier",
"easytier-core",
"easytier-proto",
"flate2",
"futures",
"gethostname 1.1.0",
"ipnet",
"napi-build-ohos",