append_peer


Description:

public void append_peer (WireGuardPeer peer)

If a peer with the same public-key already exists, that one is replaced by peer.

The new peer is always appended (or moved to) the end, so in case a peer is replaced, the indexes are shifted and the number of peers stays unchanged.

Parameters:

this

the SettingWireGuard instance

peer

the WireGuardPeer instance to append. This seals peer and keeps a reference on the instance.




2022 vala-language.org