app

package
v0.0.0-...-8099fea Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Config *config.Config
}

func NewApp

func NewApp(config *config.Config) App

func (*App) AssignIPToTun

func (app *App) AssignIPToTun() error

func (*App) CreateRoutes

func (app *App) CreateRoutes() error

NB: The global path is supposed to route ALL traffic to TUN

I use 0.0.0.0/1 and 128.0.0.0/1 as destination addresses specifically because I want to
override the default route without modifying or removing the existing one
See: https://serverfault.com/questions/1100250/what-is-the-difference-between-0-0-0-0-0-and-0-0-0-0-1
& answer https://serverfault.com/a/1100354

func (*App) StartVPNClient

func (app *App) StartVPNClient() error

func (*App) StartVPNServer

func (app *App) StartVPNServer() error

Jump to

Keyboard shortcuts

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