vpn

package
v0.0.0-...-b7e086b Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ProxyHost = "proxy-cpt.cyclopcam.org"

Variables

This section is empty.

Functions

This section is empty.

Types

type VPN

type VPN struct {
	Log log.Log
	// contains filtered or unexported fields
}

VPN is only safe to use by a single thread

func NewVPN

func NewVPN(log log.Log, privateKey, publicKey wgtypes.Key, shutdownStarted chan bool, wgkernelClientSecret string) *VPN

func (*VPN) ConnectKernelWG

func (v *VPN) ConnectKernelWG() error

Connect to our Wireguard interface process

func (*VPN) Start

func (v *VPN) Start() error

Start our Wireguard device, and save our public key

Jump to

Keyboard shortcuts

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