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 StopLocalProxy ¶
func StopLocalProxy() error
Types ¶
type SocketProtector ¶
SocketProtector is an interface for classes that can protect Android sockets, meaning those sockets will not be passed through the VPN.
Click to show internal directories.
Click to hide internal directories.