MCPcopy Create free account
hub / github.com/WireGuard/wgctrl-go / encodePeer

Function encodePeer

internal/wglinux/configure_linux.go:173–211  ·  view source on GitHub ↗

encodePeer returns a function to encode PeerConfig nested attributes.

(p wgtypes.PeerConfig)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

configAttrsFunction · 0.85

Calls 2

encodeSockaddrFunction · 0.85
encodeAllowedIPsFunction · 0.85

Tested by

no test coverage detected