Skip to content

Commit

Permalink
fix: 修复 vmes/vless 解析问题
Browse files Browse the repository at this point in the history
  • Loading branch information
nitezs committed Mar 9, 2024
1 parent f51958b commit 679102f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions model/proxy_vmess.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
package model

type HTTPOptions struct {
Method string `proxy:"method,omitempty"`
Path []string `proxy:"path,omitempty"`
Headers map[string][]string `proxy:"headers,omitempty"`
Method string `yaml:"method,omitempty"`
Path []string `yaml:"path,omitempty"`
Headers map[string][]string `yaml:"headers,omitempty"`
}

type HTTP2Options struct {
Host []string `proxy:"host,omitempty"`
Path string `proxy:"path,omitempty"`
Host []string `yaml:"host,omitempty"`
Path string `yaml:"path,omitempty"`
}

type GrpcOptions struct {
GrpcServiceName string `proxy:"grpc-service-name,omitempty"`
GrpcServiceName string `yaml:"grpc-service-name,omitempty"`
}

type RealityOptions struct {
Expand All @@ -21,10 +21,10 @@ type RealityOptions struct {
}

type WSOptions struct {
Path string `proxy:"path,omitempty"`
Headers map[string]string `proxy:"headers,omitempty"`
MaxEarlyData int `proxy:"max-early-data,omitempty"`
EarlyDataHeaderName string `proxy:"early-data-header-name,omitempty"`
Path string `yaml:"path,omitempty"`
Headers map[string]string `yaml:"headers,omitempty"`
MaxEarlyData int `yaml:"max-early-data,omitempty"`
EarlyDataHeaderName string `yaml:"early-data-header-name,omitempty"`
}

type VmessJson struct {
Expand Down

0 comments on commit 679102f

Please sign in to comment.