View Source Wireguardex.DeviceConfig (Wireguardex v0.1.0)
DeviceConfig represents a configuration that can be set on a Wireguard
device (interface).
If an interface exists, the configuration is applied on top of the existing interface's settings. Missing settings are not overwritten or set to defaults.
public_keyThe public encryption key to set on the interface.private_keyThe private encryption key to set on the interface.fwmarkThe fwmark to set on the interface.listen_portThe listening port for incoming connections to set on the interface.peersA list of peers with their own configurations to set on this interface.replace_peersIf true, replace existing peer configurations on the interface. If false, modify existing peer configurations or append them to the interface.