gsnova

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2017 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProtectConnections

func ProtectConnections(dnsServer string, p SocketProtector)

ProtectConnections allows connections made by Lantern to be protected from routing via a VPN. This is useful when running Lantern as a VPN on Android, because it keeps Lantern's own connections from being captured by the VPN and resulting in an infinite loop.

func StartLocalProxy

func StartLocalProxy(home string, conf string, hosts string, cnip string, watchConf bool) error

func StopLocalProxy

func StopLocalProxy() error

func SyncConfig

func SyncConfig(addr string, localDir string) (bool, error)

SyncConfig sync config files from running gsnova instance

Types

type SocketProtector

type SocketProtector interface {
	Protect(fileDescriptor int) error
}

SocketProtector is an interface for classes that can protect Android sockets, meaning those sockets will not be passed through the VPN.

Jump to

Keyboard shortcuts

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