xray

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: 62 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BlockHosts = map[string]*conf.HostAddress{

	"domain:doubleclick.net": localhost,

	"keyword:auspiciousvp": localhost,
	"domain:cnzz.com":      localhost,

	"at3.doubanio.com":     localhost,
	"p.pinduoduo.com":      localhost,
	"pos.baidu.com":        localhost,
	"hm.baidu.com":         localhost,
	"cpro.baidu.com":       localhost,
	"domain:googleapis.cn": googleapis,
}

Functions

func CreateDNSConfig

func CreateDNSConfig(option features.VmessOptions) *conf.DNSConfig

func LoadXVmessConfig

func LoadXVmessConfig(profile *features.Vmess) (*conf.Config, error)

func NewTCPHandler

func NewTCPHandler(ctx context.Context, instance *xcore.Instance) core.TCPConnHandler

func NewUDPHandler

func NewUDPHandler(ctx context.Context, instance *xcore.Instance, timeout time.Duration) core.UDPConnHandler

func StartInstance

func StartInstance(config []byte) (*core.Instance, error)

Start start with config

Types

This section is empty.

Jump to

Keyboard shortcuts

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