arblant
firefox-vpn-client / core / internal / tun / tunnel_other.go
tunnel_other.go16 lines · 405 B
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
//go:build !linux

package tun

import "errors"

// Tunnel is a running userspace stack on a TUN device; only Android (Linux)
// has one.
type Tunnel struct{}

// Start is not supported here: the VPN mode is Android's.
func Start(fd int, mtu uint32, dial Dialer, allow Allow, dns *FakeDNS) (*Tunnel, error) {
	return nil, errors.New("tun: the VPN mode runs on Android only")
}

func (t *Tunnel) Stop() {}