public final class TunnelConfiguration

  1. Object
  2. TunnelConfiguration

What the tunnel was started with.

Handed to VpnTunnel.onStart. The addresses and routes are what the PLATFORM was told to set up before any packet arrives; a tunnel reads them to know what it is carrying, and does not set them here – that is the profile’s job.

Methods

public String getServer()The tunnel server address.
public String[] getRoutes()The routes directed into the tunnel, in CIDR form.
public String[] getDnsServers()The DNS servers the tunnel provides.
public int getMtu()The link MTU, which bounds what VpnTunnel.forward can send.
public String getData()Whatever the app attached when it started the tunnel, untouched.

Inherited methods

Method details

getServer

public String getServer()
The tunnel server address.

getRoutes

public String[] getRoutes()
The routes directed into the tunnel, in CIDR form.

getDnsServers

public String[] getDnsServers()
The DNS servers the tunnel provides.

getMtu

public int getMtu()
The link MTU, which bounds what VpnTunnel.forward can send.

getData

public String getData()

Whatever the app attached when it started the tunnel, untouched.

The way anything the app knows reaches a tunnel without the two having to share a process. See TunnelSetup.data.