proxy

package
v0.0.0-...-e7e7582 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TorConfigPath = "/etc/tor/torrc"
	TorDataDir    = "/var/lib/tor"
	TorLogPath    = "/var/log/tor/tor.log"
)
View Source
const (
	TorSOCKSProxy  = "127.0.0.1:9050"
	RequestTimeout = 30 * time.Second
)

Variables

This section is empty.

Functions

func CheckAndSetupTor

func CheckAndSetupTor(autoFix bool) error

CheckAndSetupTor performs comprehensive Tor setup and configuration

func CheckTorStartup

func CheckTorStartup() error

CheckTorStartup checks if Tor is available at startup (exported for main package)

func DiagnoseTorIssues

func DiagnoseTorIssues()

DiagnoseTorIssues provides detailed diagnostics for Tor problems

func GetTorBridgeRecommendations

func GetTorBridgeRecommendations() []string

GetTorBridgeRecommendations provides bridge recommendations based on location

func Handler

func Handler() http.Handler

Handler returns HTTP handler for proxying onion sites

Types

type TorSetup

type TorSetup struct {
	AutoFix bool // Whether to automatically fix issues
}

TorSetup handles comprehensive Tor installation and configuration checks

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL