From 679102fa3bb4326c3abdea87e117eb073c6f007c Mon Sep 17 00:00:00 2001 From: nite07 Date: Sat, 9 Mar 2024 15:33:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20vmes/vless=20?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/proxy_vmess.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/model/proxy_vmess.go b/model/proxy_vmess.go index 1d1b2ab..f9c5116 100644 --- a/model/proxy_vmess.go +++ b/model/proxy_vmess.go @@ -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 { @@ -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 {