features

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shadowsocks

type Shadowsocks struct {
	Add      string
	Port     int
	Password string
	Method   string
	VmessOptions
}

func NewShadowsocks

func NewShadowsocks(Add string, Port int, Password string, Method string, opt []byte) *Shadowsocks

type Trojan

type Trojan struct {
	Add            string
	Port           int
	Password       string
	SNI            string
	SkipCertVerify bool
	Net            string
	Path           string // ws path
	Host           string // ws host / http host
	VmessOptions
}

func NewTrojan

func NewTrojan(
	Add string,
	Port int,
	Password string,
	SNI string,
	SkipCertVerify bool,
	Net string,
	Path string,
	Host string,
	opt []byte) *Trojan

type Vless

type Vless struct {
	TLS        string
	Add        string
	Port       int
	Net        string
	ID         string
	Type       string // headerType
	Security   string // VlessUser.Security
	Encryption string // VlessUser.encryption
	Flow       string // VlessUser.flow
	Protocol   string
	Path       string // ws path
	Host       string // ws host / http host
	SNI        string // tls sni
	VmessOptions
}

func NewVless

func NewVless(Add string, Port int, ID string, TLS string, HeaderType string, Encryption string, Net string, Flow string, Security string, Path string, Host string, SNI string, opt []byte) *Vless

type Vmess

type Vmess struct {
	Host       string
	Path       string
	TLS        string
	Add        string
	Port       int
	Aid        int
	Net        string
	ID         string
	Type       string // headerType
	Security   string // vnext.Security
	Encryption string // VlessUser.encryption
	Flow       string // VlessUser.flow
	SNI        string // tls sni
	Protocol   string
	VmessOptions
	Trojan      *Trojan
	Shadowsocks *Shadowsocks
}

func NewVmess

func NewVmess(Host string, Path string, TLS string, Add string, Port int, Aid int, Net string, ID string, Type string, Security string, opt []byte) *Vmess

type VmessDialer

type VmessDialer struct {
	Instance *vcore.Instance
}

func (*VmessDialer) DialContext

func (d *VmessDialer) DialContext(ctx context.Context, network string, addr string) (net.Conn, error)

type VmessOptions

type VmessOptions struct {
	UseIPv6         bool   `json:"useIPv6"`
	Loglevel        string `json:"logLevel"`
	RouteMode       int    `json:"routeMode"`       // for SSRRAY
	DisableDNSCache bool   `json:"disableDNSCache"` // for SSRRAY
	EnableSniffing  bool   `json:"enableSniffing"`
	DNS             string `json:"dns"` // DNS Config
	AllowInsecure   bool   `json:"allowInsecure"`
	Mux             int    `json:"mux"`
	LocalPort       int    `json:"localPort"`
	ServerName      string `json:"serverName"`
}

func NewVmessOptions

func NewVmessOptions(opt []byte) VmessOptions

Jump to

Keyboard shortcuts

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