tun2socks

package
v0.0.0-...-6c6da95 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLoglevel

func SetLoglevel(logLevel string)

SetLoglevel set tun2socks log level possible input: debug/info/warn/error/none

func Start

func Start(opt *Tun2socksStartOptions) int

Start sets up lwIP stack, starts a Tun2socks instance

func Stop

func Stop()

Stop stop it

Types

type Tun2socksStartOptions

type Tun2socksStartOptions struct {
	TunFd        int
	Socks5Server string
	FakeIPRange  string
	MTU          int
	EnableIPv6   bool
	AllowLan     bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL