Fix tls tricks parser

This commit is contained in:
problematicconsumer
2023-12-03 21:43:54 +03:30
parent a5b1fbc2d7
commit d3ad56ab1a
3 changed files with 5 additions and 5 deletions

View File

@@ -15,7 +15,6 @@ import (
)
type ConfigOptions struct {
TLSTricks TLSTricks
ExecuteAsIs bool `json:"execute-config-as-is"`
LogLevel string `json:"log-level"`
ResolveDestination bool `json:"resolve-destination"`
@@ -41,13 +40,14 @@ type ConfigOptions struct {
GeoIPPath string `json:"geoip-path"`
GeoSitePath string `json:"geosite-path"`
Rules []Rule `json:"rules"`
TLSTricks
}
type TLSTricks struct {
EnableTLSFragment bool `json:"enable-tls-fragment"`
TLSFragmentSize string `json:"tls-fragment-size"`
TLSFragmentSleep string `json:"tls-fragment-sleep"`
EnableMixedSNICase bool `json:"enable-mixed-sni-case"`
EnableMixedSNICase bool `json:"enable-tls-mixed-sni-case"`
}
func BuildConfigJson(configOpt ConfigOptions, input option.Options) (string, error) {