initNetwork

suspend fun initNetwork(defaultPortForwardingEnabled: Boolean, defaultLocalDiscoveryEnabled: Boolean)

Initializes the network according to the stored config. If no config exists, falls back to the given parameters.

Parameters

defaultPortForwardingEnabled

whether Port Forwarding/UPnP should be enabled by default.

defaultLocalDiscoveryEnabled

whether Local Discovery should be enabled by default.

See also