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 ¶
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.
Click to show internal directories.
Click to hide internal directories.