Repository navigation
feat: Android UI for full tunnel mode (3/3) - #95
Closed
vahidlazio wants to merge 1 commit into
Closed
vahidlazio wants to merge 1 commit into
vahidlazio wants to merge 1 commit into
Conversation
8 of 10 tasks
Owner
|
Depends on #94 per your PR body. Will review + merge once #94 is rebased, reviewed, and green. Note: you'll also need to rebase #95 onto main after #94 lands — ConfigStore.kt just got a tiny change from #92 (the accounts.google.com SNI typo fix mirrored on the Android side) that might trivially conflict with your [reply via Anthropic Claude | reviewed by @therealaleph] |
Android-side changes to support Mode::Full in the UI and VPN service. - ConfigStore.kt: Mode.FULL enum variant, toJson/fromJson serialization - MhrvVpnService.kt: skip "incomplete config" check for Full mode (merged with upstream therealaleph#73 startForeground crash fix) - HomeScreen.kt: "Full tunnel (no cert)" in mode dropdown, start button enabled, script ID fields shown for full mode Depends on: Rust-side Mode::Full (separate PR). Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
vahidlazio
force-pushed
the
feat/full-tunnel-android
branch
from
April 23, 2026 21:28
a39469a to
97f1946
Compare
therealaleph
pushed a commit
that referenced
this pull request
Apr 24, 2026
Adds a new `mode: full` that tunnels ALL traffic end-to-end through Apps Script → a remote tunnel node. Browser does TLS directly with the destination. No MITM, no CA installation needed on the client device. Ships as part of the 3-PR series: #93 (tunnel-node service + CodeFull.gs, merged) + this (Rust-side Mode::Full + batch tunnel client) + #95 (Android UI dropdown, now rolled into this PR post-rebase). ### Architecture - Client → mhrv-rs → script.google.com (Apps Script fetch) → tunnel-node on user's VPS → real destination - Apps Script is the transport to reach the VPS; works even when the ISP blocks direct VPS IPs - Batch multiplexer collects data from all active sessions and ships one Apps Script request per tick ### Safety properties of this merge - AppsScript + GoogleOnly dispatch paths are **unchanged**; Full mode is an additive branch at the top of `dispatch_tunnel`. - `tunnel_client.rs` is a new isolated module (387 LOC). - `tunnel_request()` is a new method on `DomainFronter`, no change to `relay()` / `relay_parallel_range()`. - Config: additive `Mode::Full` variant + validation tests (2 new); existing validation rules untouched. - Local build: clean compile. `cargo test --quiet`: 75 passed (73 → 75 with 2 new config tests). ### Closes Unblocks the feature requested in #61, #69, #100, #105, #110, #111, #113, #116. ### Testing vahidlazio has iterated on prior review feedback. End-to-end testing with a real tunnel-node deployment will follow post-merge from @Feiabyte (volunteered in #61). Post-merge CI will exercise compile + full test matrix across all targets; any regression caught there gets a fast-follow fix.
Contributor
Author
|
@therealaleph can we re open this? rebased on main |
therealaleph
pushed a commit
that referenced
this pull request
Apr 25, 2026
Adds a new `mode: full` that tunnels ALL traffic end-to-end through Apps Script → a remote tunnel node. Browser does TLS directly with the destination. No MITM, no CA installation needed on the client device. Ships as part of the 3-PR series: #93 (tunnel-node service + CodeFull.gs, merged) + this (Rust-side Mode::Full + batch tunnel client) + #95 (Android UI dropdown, now rolled into this PR post-rebase). ### Architecture - Client → mhrv-rs → script.google.com (Apps Script fetch) → tunnel-node on user's VPS → real destination - Apps Script is the transport to reach the VPS; works even when the ISP blocks direct VPS IPs - Batch multiplexer collects data from all active sessions and ships one Apps Script request per tick ### Safety properties of this merge - AppsScript + GoogleOnly dispatch paths are **unchanged**; Full mode is an additive branch at the top of `dispatch_tunnel`. - `tunnel_client.rs` is a new isolated module (387 LOC). - `tunnel_request()` is a new method on `DomainFronter`, no change to `relay()` / `relay_parallel_range()`. - Config: additive `Mode::Full` variant + validation tests (2 new); existing validation rules untouched. - Local build: clean compile. `cargo test --quiet`: 75 passed (73 → 75 with 2 new config tests). ### Closes Unblocks the feature requested in #61, #69, #100, #105, #110, #111, #113, #116. ### Testing vahidlazio has iterated on prior review feedback. End-to-end testing with a real tunnel-node deployment will follow post-merge from @Feiabyte (volunteered in #61). Post-merge CI will exercise compile + full test matrix across all targets; any regression caught there gets a fast-follow fix.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 3 of 3: Full Tunnel Mode
Android UI surface for full tunnel mode. Depends on Rust-side Mode::Full (PR #94).
What
ConfigStore.kt—Mode.FULLenum, JSON serializationMhrvVpnService.kt— skip credential check for Full mode (merged with upstream ورژن اندروید کرش میکنه #73 startForeground fix)HomeScreen.kt— "Full tunnel (no cert)" in mode dropdown, start button + script ID fields enabled3 files, 62 insertions
🤖 Generated with Claude Code