Versions in this module Expand all Collapse all v0 v0.2.0 Jun 3, 2023 v0.1.0 Jan 5, 2023 Changes in this version + const DefaultMtu + const KeyLength + type Bytes uint64 + type Config struct + Interface Interface + Name string + Peers []Peer + func FromWgQuick(s, name string) (*Config, error) + func FromWgQuickFile(file, name string) (*Config, error) + type Endpoint struct + Host string + Port uint16 + type HandshakeTime time.Duration + type Interface struct + Addresses []netip.Prefix + DNS []netip.Addr + DNSSearch []string + ListenPort uint16 + MTU uint16 + PostDown string + PostUp string + PreDown string + PreUp string + PrivateKey Key + TableOff bool + type Key [KeyLength]byte + func (k *Key) IsZero() bool + func (k *Key) ToHex() string + type ParseError struct + func (e *ParseError) Error() string + type Peer struct + AllowedIPs []netip.Prefix + Endpoint Endpoint + PersistentKeepalive uint16 + PresharedKey Key + PublicKey Key + type Tunnel struct + func CreateTunnel(config *Config) (*Tunnel, error) + func CreateTunnelFromFile(file string) (*Tunnel, error) + func (t *Tunnel) Dial(network, addr string) (net.Conn, error) + func (t *Tunnel) Listen(proto string, address string) (net.Listener, error)