omarchy-send/internal
28allday 7d6e339dcb Route tailnet traffic via tailscaled's SOCKS5 proxy on userspace boxes
Under tailscaled --tun=userspace-networking (no TUN device — the default
in unprivileged containers), processes cannot dial tailnet addresses at
all: inbound connections are proxied to loopback by tailscaled, but
outbound 100.64.0.0/10 dials have no route. omarchy-send could receive
on such boxes but never send, probe, or discover over the tailnet.

New internal/tsproxy auto-detects this: when no local interface carries
a tailnet address but a SOCKS5 proxy answers at localhost:1055 (the
conventional --socks5-server address), tailnet-bound connections route
through it. LAN traffic is never proxied; explicit HTTPS_PROXY/
HTTP_PROXY/NO_PROXY win over detection, restoring the env-var support
the custom transports had silently dropped.

Also guard NotePeer against the loopback trap the same proxying causes:
inbound registers all appear to come from 127.0.0.1, and recording that
over a peer's routable address made a TUI "send" loop back to our own
receiver while looking delivered.

Live-verified from an omaterm container (userspace tailscaled): headless
send discovered and messaged a tailnet peer with no env vars set.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-06 13:29:14 +01:00
..
app Headless one-shot message send + desktop notifications on incoming 2026-05-29 14:13:43 +01:00
client Route tailnet traffic via tailscaled's SOCKS5 proxy on userspace boxes 2026-06-06 13:29:14 +01:00
clipboard Clipboard send/copy, PIN for messages, and quiet stdlib logging 2026-05-27 22:06:24 +01:00
config Add remote-peer support over Tailscale and unicast probing 2026-06-02 21:47:52 +01:00
dbg Clipboard send/copy, PIN for messages, and quiet stdlib logging 2026-05-27 22:06:24 +01:00
discovery Route tailnet traffic via tailscaled's SOCKS5 proxy on userspace boxes 2026-06-06 13:29:14 +01:00
notify Headless one-shot message send + desktop notifications on incoming 2026-05-29 14:13:43 +01:00
protocol Initial commit: Omarchy-Send v0.1.0 2026-05-27 19:26:08 +01:00
security Initial commit: Omarchy-Send v0.1.0 2026-05-27 19:26:08 +01:00
server Send and read plain-text messages 2026-05-27 21:40:40 +01:00
tailscale Add remote-peer support over Tailscale and unicast probing 2026-06-02 21:47:52 +01:00
theme Initial commit: Omarchy-Send v0.1.0 2026-05-27 19:26:08 +01:00
transfer Initial commit: Omarchy-Send v0.1.0 2026-05-27 19:26:08 +01:00
tsproxy Route tailnet traffic via tailscaled's SOCKS5 proxy on userspace boxes 2026-06-06 13:29:14 +01:00
tui Add remote-peer support over Tailscale and unicast probing 2026-06-02 21:47:52 +01:00