runHeadlessSend only ran multicast discovery, so `--to <alias> --message` could not reach a peer that is only routable over the tailnet (or another subnet), even though the TUI and quick-send paths could via watchRemotes. Start the same watcher in the headless path: known peers from config plus online Tailscale peers are unicast-probed, the probe handshake records the peer, and FindPeer picks it up like any multicast discovery. Verified live against a tailnet-only peer (different subnet, DERP-relayed): discovered and message delivered. TestFindPeerViaProbe covers the composition Probe -> NotePeer -> PeerFound -> FindPeer. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| app | ||
| client | ||
| clipboard | ||
| config | ||
| dbg | ||
| discovery | ||
| notify | ||
| protocol | ||
| security | ||
| server | ||
| tailscale | ||
| theme | ||
| transfer | ||
| tui | ||