Sets or clears the endpoint of this.
It is a bug trying to modify a sealed WireGuardPeer instance.
| 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 |
|
true if the endpoint is null or valid. For an invalid |