View Source Wireguardex.PeerConfig (Wireguardex v0.1.0)
PeerConfig represents a peer's configuration of persistent attributes. They do
not change over time and are part of the configuration of a device.
public_keyThe public key of the peer.preshared_keyThe preshared key available to both peers (nilmeans no PSK is used).endpointThe endpoint this peer listens for connections on (nilmeans any).persistent_keepalive_intervalThe interval for sending keepalive packets (nilmeans disabled).allowed_ipsThe allowed ip addresses this peer is allowed to have.