remove_allowed_ip


Description:

public bool remove_allowed_ip (uint idx)

Removes the allowed-ip at the given idx.

This shifts all following entries one index down.

It is a bug trying to modify a sealed WireGuardPeer instance.

Parameters:

this

the unsealed WireGuardPeer instance

idx

the index from zero to (allowed-ips-len - 1) to retrieve. If the index is out of range, false is returned and nothing is done.

Returns:

true if idx was valid and the allowed-ip was removed. false otherwise, and the peer will not be changed.




2022 vala-language.org