Documentation ¶
Index ¶
- func LoadConfig(filename string) (*core.Config, error)
- func ProxyBind(listen string, port int) map[string]string
- func XRayConfig(IP string, testConfig *configuration.Configuration) string
- func XRayReceiver(configPath string) (string, int, error)
- func XRayVersion()
- type Inbound
- type Log
- type Outbound
- type ScanWorker
- type StreamSettings
- type TLSSettings
- type User
- type VNext
- type WSSettings
- type XRay
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func XRayConfig ¶
func XRayConfig(IP string, testConfig *configuration.Configuration) string
XRayConfig create VPN configuration
func XRayVersion ¶
func XRayVersion()
Types ¶
type Inbound ¶
type Inbound struct { Port int `json:"port"` Listen string `json:"listen"` Tag string `json:"tag"` Protocol string `json:"protocol"` Settings struct { Auth string `json:"auth"` UDP bool `json:"udp"` IP string `json:"ip"` } `json:"settings"` Sniffing struct { Enabled bool `json:"enabled"` DestOverride []string `json:"destOverride"` } `json:"sniffing"` }
type Outbound ¶
type Outbound struct { Protocol string `json:"protocol"` Settings struct { VNext []VNext `json:"vnext"` } `json:"settings"` StreamSettings StreamSettings `json:"streamSettings"` }
type ScanWorker ¶
func XRayInstance ¶
func XRayInstance(configPath string) ScanWorker
type StreamSettings ¶
type StreamSettings struct { Network string `json:"network"` Security string `json:"security"` WSSettings WSSettings `json:"wsSettings"` TLSSettings TLSSettings `json:"tlsSettings"` }
type TLSSettings ¶
type WSSettings ¶
Click to show internal directories.
Click to hide internal directories.