set_endpoint


Description:

public bool set_endpoint (string endpoint, bool allow_invalid)

Sets or clears the endpoint of this.

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

Parameters:

this

the unsealed WireGuardPeer instance

endpoint

the socket address endpoint to set or null.

allow_invalid

if true, also invalid values are set. If false, the function does nothing for invalid endpoint arguments.

Returns:

true if the endpoint is null or valid. For an invalid endpoint argument, false is returned. Depending on allow_invalid, the instance will be modified.