support trojan xtls
change geodataloader mode as memconservative
This commit is contained in:
Clash-Mini
2022-02-04 23:33:36 +08:00
parent 35b19c3d7f
commit 2bf34c766e
8 changed files with 138 additions and 92 deletions

View File

@ -40,6 +40,7 @@ type General struct {
LogLevel log.LogLevel `json:"log-level"`
IPv6 bool `json:"ipv6"`
Interface string `json:"-"`
Geodataload string `json:"geodataload"`
}
// Inbound
@ -169,6 +170,7 @@ type RawConfig struct {
ExternalUI string `yaml:"external-ui"`
Secret string `yaml:"secret"`
Interface string `yaml:"interface-name"`
Geodataloader string `yaml:"geodata-loader"`
ProxyProvider map[string]map[string]interface{} `yaml:"proxy-providers"`
RuleProvider map[string]map[string]interface{} `yaml:"rule-providers"`
@ -199,6 +201,7 @@ func UnmarshalRawConfig(buf []byte) (*RawConfig, error) {
AllowLan: false,
BindAddress: "*",
Mode: T.Rule,
Geodataloader: "standard",
UnifiedDelay: false,
Authentication: []string{},
LogLevel: log.INFO,