Localtunnel hosting + admin panel + AppData db

- Default hosting mode is now Localtunnel — public *.loca.lt URL,
  no account, auto-fetched on first run. Replaces the prototyped
  Tailscale mode.
- Tailscale code purged from launcher + CLI; docs swapped to
  Localtunnel throughout (easy-setup, joining-a-server, server-cli,
  troubleshooting, faq, READMEs).
- Launcher sidebar gains an Open admin panel button — opens
  https://admin.<apex> in the browser once the server is live.
- SQLite db moves to %APPDATA%\DorkNet\dorknet.db (server reads
  Database__SqlitePath env var, launcher passes it). Existing dbs
  under <serverDir>\data\ are migrated on first run.
- CLI Program.cs: --mode default flips from tailscale to localtunnel;
  csproj links in LocaltunnelTunnel + LocaltunnelInstaller.
- New Backend files: LauncherNameServer, LocaltunnelInstaller,
  LocaltunnelTunnel, SingleOriginServiceMap.
- .gitignore: exclude installer/out/.
This commit is contained in:
Alexa
2026-05-28 01:39:38 +03:00
parent 7852b410ee
commit f5ad4b59ef
30 changed files with 942 additions and 184 deletions
+21 -9
View File
@@ -16,10 +16,14 @@ this re-fetches the server's current pubkey before patching.
The watch can't reach the server URL. Verify:
1. The host string in `dorknet-clientmod.json` matches the server's
public URL (tunnel URL for Easy mode).
2. The server responds to `https://<host>/healthz` with `200 OK` from
the same machine the client runs on.
3. No corporate proxy / DNS filter is intercepting `*.trycloudflare.com`.
current join-code URL. (Localtunnel hands out a fresh
`<random>.loca.lt` URL on every host restart — the joiner needs the
most recent code.)
2. Open `https://<host>/healthz` in a browser from the joiner's machine
and confirm a `200 OK`. If you instead see Localtunnel's "Click to
Continue" page, click through once and retry the connect.
3. No corporate proxy / DNS filter is intercepting `loca.lt` /
`sslip.io`.
### Black screen after the loading bar fills
@@ -73,12 +77,20 @@ fixes:
## Easy app
### "Cloudflared exited unexpectedly"
### "Localtunnel couldn't get a URL"
The bundled `cloudflared.exe` couldn't start. Most likely a Windows
Defender false-positive — check Defender's quarantine. If you find a
cleaner alternative tunnel provider, open an issue; we've been looking
for one.
DorkNet shells out to the Localtunnel client and waits for it to
report back with a `*.loca.lt` URL. If that fails, the most common
causes are:
- Localtunnel's service is rate-limiting / down — wait a couple
minutes and retry, or switch to LAN mode if friends are local.
- No Node.js / `npx` available for the fallback path (the launcher
bundles a .NET Localtunnel client, but if both that and `npx`
fail you'll see this). Install Node.js 16+ from
[nodejs.org](https://nodejs.org/) and click Retry.
- Outbound HTTPS to `loca.lt` is blocked (corporate firewall, DNS
filter). Switch to LAN mode or use the wildcard option with your
own apex.
### Patch button is greyed out