vpn

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Cmd = &cobra.Command{
		Use:   "vpn",
		Short: "Run a vpn daemon which backend is PeerGuard p2p network",
		Args:  cobra.NoArgs,
		RunE:  run,
	}
	Version = "dev"
	Commit  string
)

Functions

This section is empty.

Types

type Config added in v0.4.5

type Config struct {
	iface.Config
	DiscoPortScanOffset            int
	DiscoPortScanCount             int
	DiscoPortScanDuration          time.Duration
	DiscoChallengesRetry           int
	DiscoChallengesInitialInterval time.Duration
	DiscoChallengesBackoffRate     float64
	DiscoIgnoredInterfaces         []string
	TunName                        string
	Peers                          []string
	PrivateKey                     string
	SecretFile                     string
	Server                         string
	AuthQR                         bool
}

type P2PVPN added in v0.4.5

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

func (*P2PVPN) Run added in v0.4.5

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

Jump to

Keyboard shortcuts

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