set_endpoint
Description:
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 |
Returns:
true if the endpoint is null or valid. For an invalid |