Repository navigation
PocketHost 1.0.4
1.0.4 - 2026-11-05
Fixed
- A connected Cloudflare Tunnel no longer disconnects when hosting stops.
STOP HOSTINGnow
stops only the Go engine; the foreground service, its notification and the wake/Wi-Fi locks stay
alive while a tunnel is connecting/connected. The connector remains registered and the same
hostname returns200again as soon as hosting is restarted — no reconnect, no new URL. While
hosting is stopped the origin is offline, so Cloudflare answers530/1033(or502). - Saved Named Tunnel tokens are visible and reusable. After
SAVEthe input is cleared and a
"Saved token ••••" card with CONNECT WITH SAVED TOKEN is shown; it survives app
restarts (Android Keystore AES-256-GCM) and needs no re-pasting. Connecting with a saved token
asks for the same public-exposure consent as a typed token. - Tunnel-only state is honest. Connecting while hosting is stopped is allowed (origin offline
until hosting starts); the notification says "Tunnel connected / Hosting is stopped — visitors
get 502 until you start hosting" with Start hosting / Disconnect tunnel actions. Disconnecting
the last active component stops the service and releases the locks. - Dashboard and Tunnel copy explain that stopping hosting keeps the tunnel connected; an
origin-offline banner appears when hosting is off but the tunnel is up.
Changed
- Version 1.0.4 (versionCode 5); re-signed with the project JKS (same certificate).
Verified
- 173 JVM tests / 18 suites, 0 failures (+9 tunnel-lifecycle tests).
- Emulator (Android 16): Quick Tunnel →
STOP HOSTINGkeeps the tunnelCONNECTEDand the
foreground notification alive, and the public URL answers530(Cloudflare 1033, origin
offline);START HOSTINGmakes the same URL return200without reconnecting; the
saved-token card persists across an app restart; CONNECT WITH SAVED TOKEN shows consent and
fails fast on an invalid token, then tears the service down cleanly.
Full notes: CHANGELOG.md · Live (served from a phone): downmonitor.app