Documentation
¶
Overview ¶
Package tor fetches URLs and wraps commands so they egress through the host's Tor SOCKS proxy. tor-url fetches run on the host (constrained); generic and IRC commands run inside the member's pod via torsocks (see cmd/agentbbs).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SocksAddr = envOr("AGENTBBS_TOR_SOCKS", "127.0.0.1:9050")
SocksAddr is the host-local Tor SOCKS5 endpoint that setup.sh's tor service listens on. Overridable so a dev host can point elsewhere.
Functions ¶
func FetchURL ¶
FetchURL retrieves rawURL over Tor and returns the body (capped at maxBytes). Only http/https are allowed and the call is bounded by a timeout, so the URL (passed to curl as a single argv element — never a shell) can't be abused to reach the local network or run unboundedly.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.