gsnova

package
v0.27.3 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 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(dir string, monitor EventMonitor) 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 EventMonitor added in v0.24.1

type EventMonitor interface {
	OnEvent(code int, desc string) error
}

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