tor

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(proxy string) (bool, string, error)

Check checks if a Tor connection is used, retrieving the "https://check.torproject.org" page. It returns:

  • bool: true if Tor is used, false otherwise
  • string: the message contained in the html page
  • error: if the message cannot be determined

func ProxyFromEnvironment

func ProxyFromEnvironment() string

ProxyFromEnvironment returns the proxy from environment used to get the url used to check the Tor network.

Types

This section is empty.

Jump to

Keyboard shortcuts

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