VpnTunnelConfig

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

Parameters

mtu

the MTU size you wish the VPN service to set

addresses

the address you wish to set to the VPN service. They key contains the InetAddress of the address and value should be the mask width.

dns

the additional dns servers you wish to add to the VPN service

searchDomains

the DNS domains search path. Comma separated domains to search when resolving host names or null

routes

the routes (if any) you wish to add to the VPN service. The Map contains the String IP address and the Int mask. If no routes are returned, the VPN will apply its own defaults.

appExclusionList

the list of apps you wish to exclude from the VPN tunnel

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val mtu: Int
Link copied to clipboard
Link copied to clipboard
val searchDomains: String? = null