get_peer_by_public_key


Description:

public unowned WireGuardPeer? get_peer_by_public_key (string public_key, out uint out_idx)

Parameters:

this

the SettingWireGuard instance

public_key

the public key for looking up the peer.

out_idx

optional output argument for the index of the found peer. If no index is found, this is set to the get_peers_len.

Returns:

the WireGuardPeer instance with a matching public key. If no such peer exists, null is returned.