From e5c3852f0671c9efbe51881e0e96cc538a8f1e49 Mon Sep 17 00:00:00 2001 From: Qi Chai <140308209+QiChaiQiChai@users.noreply.github.com> Date: Mon, 11 Mar 2024 12:24:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dhysterica=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=BB=A3=E7=90=86=E9=85=8D=E7=BD=AE=E4=B8=AD=E9=83=A8=E5=88=86?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E7=9A=84=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/proxy_hysteria.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/model/proxy_hysteria.go b/model/proxy_hysteria.go index 21e1e1e..264fb68 100644 --- a/model/proxy_hysteria.go +++ b/model/proxy_hysteria.go @@ -13,6 +13,7 @@ type Hysteria struct { Down string `yaml:"down"` DownSpeed int `yaml:"down-speed,omitempty"` // compatible with Stash Auth string `yaml:"auth,omitempty"` + AuthStringOLD string `yaml:"auth_str,omitempty"` AuthString string `yaml:"auth-str,omitempty"` Obfs string `yaml:"obfs,omitempty"` SNI string `yaml:"sni,omitempty"` @@ -34,9 +35,13 @@ func ProxyToHysteria(p Proxy) Hysteria { Name: p.Name, Server: p.Server, Port: p.Port, + Ports: p.Ports, + Protocol: p.Protocol, Up: p.Up, Down: p.Down, Auth: p.Auth, + AuthStringOLD p.AuthStringOLD, + AuthString: p.AuthString, Obfs: p.Obfs, SNI: p.Sni, SkipCertVerify: p.SkipCertVerify,