shadowsocks

package
v0.0.0-...-4cf4c4f Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	NoError                     = 0
	Unexpected                  = 1
	NoVPNPermissions            = 2
	AuthenticationFailure       = 3
	UDPConnectivity             = 4
	Unreachable                 = 5
	VpnStartFailure             = 6
	IllegalConfiguration        = 7
	ShadowsocksStartFailure     = 8
	ConfigureSystemProxyFailure = 9
	NoAdminPermissions          = 10
	UnsupportedRoutingTable     = 11
	SystemMisconfigured         = 12
)

Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js

Variables

This section is empty.

Functions

func CheckConnectivity

func CheckConnectivity(host string, port int, password, cipher string, tk string, tcp_website string, udp_dns string) (int, error)

CheckConnectivity determines whether the Shadowsocks proxy can relay TCP and UDP traffic under the current network. Parallelizes the execution of TCP and UDP checks, selects the appropriate error code to return accounting for transient network failures. Returns an error if an unexpected error ocurrs.

func CheckServerReachable

func CheckServerReachable(host string, port int) error

CheckServerReachable determines whether the server at `host:port` is reachable over TCP. Returns an error if the server is unreachable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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