Skip to content

feat(mobile): support free Cloudflare quick tunnel for remote phone access - #137

Merged
wisdomqin merged 4 commits into
mainfrom
feat/mobile-public-tunnel
Aug 21, 2026
Merged

feat(mobile): support free Cloudflare quick tunnel for remote phone access#137
wisdomqin merged 4 commits into
mainfrom
feat/mobile-public-tunnel

Conversation

@yaojin3616

Copy link
Copy Markdown
Contributor

Summary of Changes

  1. Zero-Config Cloudflare Quick Tunnel:

    • Added src/main/mobile/cloudflared-tunnel.ts with automatic cloudflared binary discovery (PATH or cached standalone binary download with SHA-256 integrity check) and child process lifecycle management.
    • Generates free, instant, HTTPS-secured https://*.trycloudflare.com tunnels with zero registration and zero port configuration.
  2. Dual-Mode Mobile Bridge Integration:

    • Extended LanMobileBridge with dual-mode switching between Local Wi-Fi and Public Tunnel.
    • Added /desktop/tunnel/status and /desktop/tunnel/toggle HTTP routes.
    • Automatically cleans up subprocesses upon disconnection or app shutdown.
  3. Pairing UI Enhancement:

    • Added dual-mode toggle switch (📶 局域网 Wi-Fi vs 🌐 免费公网穿透) to the Desktop Pairing window.
    • Dynamic QR code and link updates upon mode switching.
  4. Testing:

    • Added test/lan-mobile-tunnel.test.ts covering regex extraction, multi-arch specs, and toggle endpoints.
    • All 32 test files (198 tests) passed cleanly.

@wisdomqin
wisdomqin merged commit 0adc41b into main Aug 21, 2026
4 checks passed
@wisdomqin
wisdomqin deleted the feat/mobile-public-tunnel branch August 21, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants