get_allowed_ip


Description:

public unowned string? get_allowed_ip (uint idx, bool? out_is_valid)

Parameters:

this

the WireGuardPeer instance

idx

the index from zero to (allowed-ips-len - 1) to retrieve.

out_is_valid

true if the returned value is a valid allowed-ip setting. This parameter is wrongly not marked as ( out) argument, it is thus not accessible via introspection. This cannot be fixed without breaking API for introspection users.

Returns:

the allowed-ip setting at index idx. If idx is out of range, null will be returned.