wireguard

package
v0.0.0-...-580f94b Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package wireguard implements a few helpers for the WireGuard protocol

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	// SourcePort is the source port of the TCP socket
	SourcePort int
	// Listen is the IP:PORT of the udp listener
	Listen string
	// Peer is the hostname/ip:port of the WireGuard peer
	Peer string
}

Proxy is the proxyguard information

func Config

func Config(cfg string, key *wgtypes.Key, proxy bool) (string, *Proxy, error)

Config gets a wireguard config with API config `cfg`, wg key `key` and whether to use proxyguard `proxy`

Directories

Path Synopsis
Package ini implements an opinionated ini parser that only implements what we exactly need for WireGuard configs - key/values MUST live under a section - empty section names are NOT allowed - comments are indicated with a #
Package ini implements an opinionated ini parser that only implements what we exactly need for WireGuard configs - key/values MUST live under a section - empty section names are NOT allowed - comments are indicated with a #

Jump to

Keyboard shortcuts

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