1
0
mirror of https://github.com/nitezs/sub2clash.git synced 2024-12-23 22:04:41 -05:00

fix: 修复 vmes/vless 解析问题

This commit is contained in:
Nite07 2024-03-09 15:33:26 +08:00
parent f51958bd5b
commit 679102fa3b

View File

@ -1,18 +1,18 @@
package model package model
type HTTPOptions struct { type HTTPOptions struct {
Method string `proxy:"method,omitempty"` Method string `yaml:"method,omitempty"`
Path []string `proxy:"path,omitempty"` Path []string `yaml:"path,omitempty"`
Headers map[string][]string `proxy:"headers,omitempty"` Headers map[string][]string `yaml:"headers,omitempty"`
} }
type HTTP2Options struct { type HTTP2Options struct {
Host []string `proxy:"host,omitempty"` Host []string `yaml:"host,omitempty"`
Path string `proxy:"path,omitempty"` Path string `yaml:"path,omitempty"`
} }
type GrpcOptions struct { type GrpcOptions struct {
GrpcServiceName string `proxy:"grpc-service-name,omitempty"` GrpcServiceName string `yaml:"grpc-service-name,omitempty"`
} }
type RealityOptions struct { type RealityOptions struct {
@ -21,10 +21,10 @@ type RealityOptions struct {
} }
type WSOptions struct { type WSOptions struct {
Path string `proxy:"path,omitempty"` Path string `yaml:"path,omitempty"`
Headers map[string]string `proxy:"headers,omitempty"` Headers map[string]string `yaml:"headers,omitempty"`
MaxEarlyData int `proxy:"max-early-data,omitempty"` MaxEarlyData int `yaml:"max-early-data,omitempty"`
EarlyDataHeaderName string `proxy:"early-data-header-name,omitempty"` EarlyDataHeaderName string `yaml:"early-data-header-name,omitempty"`
} }
type VmessJson struct { type VmessJson struct {