v2rayapi

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const PROTO_SHADOWSOCKS = "shadowsocks"
View Source
const PROTO_TROJAN = "trojan"
View Source
const PROTO_VMESS = "vmess"

Variables

View Source
var SupportProtocolList = []string{
	PROTO_VMESS,
	PROTO_TROJAN,
	PROTO_SHADOWSOCKS,
	"ss",
}

Functions

func GetFreedomOutboundOfShadowsocks

func GetFreedomOutboundOfShadowsocks(network, path, addr, outag, security string, port uint32) *pros.AddOutboundRequest

func GetOutboundRequest

func GetOutboundRequest(port, aid json.Number, outproto, addr, sni, password, network, path, security, cipher, outag string) (reqs []*pros.AddOutboundRequest, err error)

func GetShadowsocksOutbound

func GetShadowsocksOutbound(addr, password, cipher, outag, proxytag string, port uint32) *pros.AddOutboundRequest

func GetTransportStreamConfig

func GetTransportStreamConfig(network, path, hdhost string) (conf *internet.StreamConfig, err error)

func GetTrojanOutbound

func GetTrojanOutbound(sender *proxyman.SenderConfig, addr, password, outag string, port uint32) *pros.AddOutboundRequest

func GetVmessOutbound

func GetVmessOutbound(sender *proxyman.SenderConfig, addr, id, outag string, port, alterid uint32) *pros.AddOutboundRequest

Types

This section is empty.

Jump to

Keyboard shortcuts

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