VpnNetworkStack

Types

Link copied to clipboard
Link copied to clipboard
data class VpnTunnelConfig(val mtu: Int, val addresses: Map<InetAddress, Int>, val dns: Set<InetAddress>, val searchDomains: String? = null, val customDns: Set<InetAddress>, val routes: Map<String, Int>, val appExclusionList: Set<String>)

Additional configuration data to be set to the VPN tunnel

Properties

Link copied to clipboard
abstract val name: String

Name of the networking layer

Functions

Link copied to clipboard
abstract fun onCreateVpn(): Result<Unit>
Link copied to clipboard
abstract fun onDestroyVpn(): Result<Unit>

Clean when the networking layer is destroyed. You can use this method to clean up resources

Link copied to clipboard

Called before the vpn tunnel is created and before the vpn is started.

Link copied to clipboard

Called before the VPN is started

Link copied to clipboard

Called before the VPN is stopped