client

package
v0.0.0-...-e8d527c Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupTun

func SetupTun(config *Config, log *logrus.Logger) (*water.Interface, error)

func Worker

func Worker(log *logrus.Logger, conn net.Conn, tun *water.Interface, config *Config)

Types

type Config

type Config struct {
	ServerAddr  string
	ServerPort  int
	TunIP       string
	KharejTunIP string
	SubnetMask  string
	TunName     string
	SecretKey   string
	MTU         int
	Verbose     bool
	TCPNoDelay  bool
	NumWorkers  int
}

func ParseConfig

func ParseConfig() *Config

Jump to

Keyboard shortcuts

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