new_clone


Description:

public WireGuardPeer new_clone (bool with_secrets)

Parameters:

this

the WireGuardPeer instance to copy.

with_secrets

if true, the preshared-key secrets are copied as well. Otherwise, they will be removed.

Returns:

a clone of this. This instance is always unsealed.