vpn

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: GPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version string
)

Functions

func Run added in v0.8.1

func Run(args []string) error

Types

type Config

type Config struct {
	NICConfig        nic.Config           `yaml:"nic"`
	ProxyConfig      rootless.ProxyConfig `yaml:"proxy"`
	DiscoConfig      udp.DiscoConfig      `yaml:"disco"`
	QueryPeers       bool
	UDPPort          int               `yaml:"udp_port"`
	PrivateKey       string            `yaml:"private_key"`
	SecretFile       string            `yaml:"secret_file"`
	Server           string            `yaml:"server"`
	AuthQR           bool              `yaml:"auth_qr"`
	P2pTransportMode p2p.TransportMode `yaml:"transport_mode"`
	Forwards         []string          `yaml:"forwards"`
	Labels           []string          `yaml:"labels"`
}

type P2PVPN

type P2PVPN struct {
	Config Config
	// contains filtered or unexported fields
}

func (*P2PVPN) Run

func (v *P2PVPN) Run(ctx context.Context) (err error)

Directories

Path Synopsis
ipc

Jump to

Keyboard shortcuts

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