xray

package
v0.0.0-...-1e2c44e Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRunning

func IsRunning() bool

func Start

func Start(config *XRayConfig) (err error)

func Stop

func Stop() (err error)

Types

type XRayConfig

type XRayConfig struct {
	// SocksAddr socks5 proxy address
	SocksAddr string
	// SocksPort socks5 proxy port
	SocksPort int
	// ServerAddr trojan proxy address
	ServerAddr string
	// ServerPort trojan proxy port
	ServerPort int
	// SNI tls server name
	SNI string
	// Password trojan password
	Password string
	// AllowInsecure skip verify
	AllowInsecure bool
	// Flow tls flow control
	Flow string
}

Jump to

Keyboard shortcuts

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