完成xray启动

This commit is contained in:
sprov
2021-05-27 23:04:39 +08:00
parent 56ed8f355c
commit 3cd25ce5ea
42 changed files with 3627 additions and 229 deletions

17
xray/config.go Normal file
View File

@@ -0,0 +1,17 @@
package xray
import "encoding/json"
type Config struct {
LogConfig json.RawMessage `json:"log"`
RouterConfig json.RawMessage `json:"routing"`
DNSConfig json.RawMessage `json:"dns"`
InboundConfigs []InboundConfig `json:"inbounds"`
OutboundConfigs json.RawMessage `json:"outbounds"`
Transport json.RawMessage `json:"transport"`
Policy json.RawMessage `json:"policy"`
API json.RawMessage `json:"api"`
Stats json.RawMessage `json:"stats"`
Reverse json.RawMessage `json:"reverse"`
FakeDNS json.RawMessage `json:"fakeDns"`
}