get_peer_by_public_key
Description:
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. |