VpnTunnelConfig
constructor(mtu: Int, addresses: Map<InetAddress, Int>, dns: Set<InetAddress>, searchDomains: String? = null, customDns: Set<InetAddress>, routes: Map<String, Int>, appExclusionList: Set<String>)
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
appExclusionList
the list of apps you wish to exclude from the VPN tunnel