@@ -52,73 +52,6 @@ type SsServerConf struct {
5252 //Mode string `json:"mode,omitempty"`
5353}
5454
55- /*
56- type XraySsConf struct{
57- Protocol string `json:"protocol"`
58- Settings XraySsServer `json:"settings"`
59- StreamSet XrStreamSettings `json:"streamSettings"`
60- Tag string `json:"tag"`
61- }
62-
63- type XraySsServer struct{
64- Address string `json:"address"`
65- Port int `json:"port"`
66- Method string `json:"method"`
67- Password string `json:"password"`
68- UoT bool `json:"uot,omitempty"`
69- }
70-
71- type XrStreamSettings struct{
72- Network string `json:"network"`
73- Security string `json:"security"`
74- TlsSettings XrTlsSettings `json:"tlsSettings,omitempty"`
75- WsSettings XrWsSettings `json:"wsSettings,omitempty"`
76- }
77-
78- type XrWsSettings struct{
79- AcceptProxyProtocol bool `json:"acceptProxyProtocol,omitempty"`
80- Path string `json:"path,omitempty"`
81- Host string `json:"host,omitempty"`
82- Headers XrHeaders `json:"headers,omitempty"`
83- HBPeriod int `json:"heartbeatPeriod,omitempty"`
84- }
85-
86- type XrHeaders struct{
87- Key string
88- Value string
89- }
90-
91- type XrTlsSettings struct{
92- ServerName string `json:"serverName"`
93- VerifyPeerSertInNames string `json:"verifyPeerCertInNames,omitempty"`
94- RejectUnknownSni bool `json:"rejectUnknownSni,omitempty"`
95- AllowInsecure bool `json:"allowInsecure,omitempty"`
96- Alpn []string `json:"alpn,omitempty"`
97- MinVersion string `json:"minVersion,omitempty"`
98- MaxVersion string `json:"maxVersion,omitempty"`
99- ChiperSuites string `json:"cipherSuites,omitempty"`
100- Sertificates []XrSertificates
101- DisableSystemRoot bool `json:"disableSystemRoot,omitempty"`
102- EnableSessionResumption bool `Json:"enableSessionResumption,omitempty"`
103- Fingerprint string `json:"fingerprint,omitempty"`
104- PinnedPeerCertificateChainSha256 []string `json:"pinnedPeerCertificateChainSha256,omitempty"`
105- CurvePreferences []string `json:"curvePreferences,omitempty"`
106- MasterKeyLog string `json:"masterKeyLog,omitempty"`
107- EchConfigList string `json:"echConfigList,omitempty"`
108- EchServerKeys string `json:"echServerKeys,omitempty"`
109- }
110-
111- type XrSertificates struct{
112- OcspStapling json.Number `json:"ocspStapling,omitempty"`
113- OneTimeLoading bool `json:"oneTimeLoading,omitempty"`
114- Usage string `json:"usage,omitempty"`
115- BuildChain bool `json:"buildChain,omitempty"`
116- CertificateFile string `json:"certificateFile"`
117- Certificate []string `json:"certificate,omitempty"`
118- KeyFile string `json:"keyFile,omitempty"`
119- Key []string `json:"key,omitempty"`
120- }
121- */
12255func decodeSsServerConfig (str string ) {
12356 var datastr string
12457 index := strings .IndexByte (str , '@' )
0 commit comments