Documentation
¶
Overview ¶
Package sitenet is the network path Pulse uses to reach indexer sites: searches, .torrent downloads and connection tests. When a proxy is set (e.g. a VPN container's HTTP proxy), site traffic goes through it and never falls back to a direct connection if the proxy is down. Local addresses (Docker service names, LAN and loopback IPs) always connect directly, so self-hosted Torznab endpoints keep working.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Client ¶
Client returns an HTTP client for indexer sites with the given timeout (0 means none; rely on the request context).
func IsLocalHost ¶
IsLocalHost reports whether host is on this machine or the local network: a single-label name (a Docker service such as "jackett"), *.local / *.lan / *.internal / localhost, or a loopback, private or link-local IP.
func IsProxyError ¶
IsProxyError reports whether err came from failing to reach the proxy.
func SetProxy ¶
SetProxy routes site traffic through raw (http://host:port). Empty clears it, restoring direct connections (and the standard proxy env vars).
func Transport ¶
func Transport() http.RoundTripper
Transport returns the round tripper for requests to indexer sites.
Types ¶
This section is empty.