gotun2socks

package
v0.0.0-...-f3e0d18 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProxyServer

func AddProxyServer(uid int, ipPort string, proxyType int, httpAuthHeader string, login string, password string)

func Prof

func Prof()

func ResetProxyServersMap

func ResetProxyServersMap()

func Run

func Run(descriptor int, maxCpus int, logPath string, appVersion string)

func SayHi

func SayHi() string

func SetDefaultProxy

func SetDefaultProxy(ipPort string, proxyType int, httpAuthHeader string, login string, password string)

func SetDnsServer

func SetDnsServer(server string, port int, isV4 bool)

func SetMaxCpus

func SetMaxCpus(maxCpus int)

func SetUidCallback

func SetUidCallback(javaCallback JavaUidCallback)

func Stop

func Stop()

Types

type Callbacks

type Callbacks struct {
	// contains filtered or unexported fields
}

func (Callbacks) GetUid

func (c Callbacks) GetUid(sourceIp string, sourcePort uint16, destIp string, destPort uint16) int

type JavaUidCallback

type JavaUidCallback interface {
	FindUid(sourceIp string, sourcePort int, destIp string, destPort int) int
}

Directories

Path Synopsis
internal
tun

Jump to

Keyboard shortcuts

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