@@ -17,11 +17,11 @@ func TestBrutalShadowsocks(t *testing.T) {
1717 method := shadowaead_2022 .List [0 ]
1818 password := mkBase64 (t , 16 )
1919 startInstance (t , option.Options {
20- LegacyInbounds : []option.LegacyInbound {
20+ Inbounds : []option.Inbound {
2121 {
2222 Type : C .TypeMixed ,
2323 Tag : "mixed-in" ,
24- MixedOptions : option.HTTPMixedInboundOptions {
24+ Options : & option.HTTPMixedInboundOptions {
2525 ListenOptions : option.ListenOptions {
2626 Listen : common .Ptr (badoption .Addr (netip .IPv4Unspecified ())),
2727 ListenPort : clientPort ,
@@ -30,7 +30,7 @@ func TestBrutalShadowsocks(t *testing.T) {
3030 },
3131 {
3232 Type : C .TypeShadowsocks ,
33- ShadowsocksOptions : option.ShadowsocksInboundOptions {
33+ Options : & option.ShadowsocksInboundOptions {
3434 ListenOptions : option.ListenOptions {
3535 Listen : common .Ptr (badoption .Addr (netip .IPv4Unspecified ())),
3636 ListenPort : serverPort ,
@@ -48,14 +48,14 @@ func TestBrutalShadowsocks(t *testing.T) {
4848 },
4949 },
5050 },
51- LegacyOutbounds : []option.LegacyOutbound {
51+ Outbounds : []option.Outbound {
5252 {
5353 Type : C .TypeDirect ,
5454 },
5555 {
5656 Type : C .TypeShadowsocks ,
5757 Tag : "ss-out" ,
58- ShadowsocksOptions : option.ShadowsocksOutboundOptions {
58+ Options : & option.ShadowsocksOutboundOptions {
5959 ServerOptions : option.ServerOptions {
6060 Server : "127.0.0.1" ,
6161 ServerPort : serverPort ,
@@ -102,11 +102,11 @@ func TestBrutalTrojan(t *testing.T) {
102102 _ , certPem , keyPem := createSelfSignedCertificate (t , "example.org" )
103103 password := mkBase64 (t , 16 )
104104 startInstance (t , option.Options {
105- LegacyInbounds : []option.LegacyInbound {
105+ Inbounds : []option.Inbound {
106106 {
107107 Type : C .TypeMixed ,
108108 Tag : "mixed-in" ,
109- MixedOptions : option.HTTPMixedInboundOptions {
109+ Options : & option.HTTPMixedInboundOptions {
110110 ListenOptions : option.ListenOptions {
111111 Listen : common .Ptr (badoption .Addr (netip .IPv4Unspecified ())),
112112 ListenPort : clientPort ,
@@ -115,7 +115,7 @@ func TestBrutalTrojan(t *testing.T) {
115115 },
116116 {
117117 Type : C .TypeTrojan ,
118- TrojanOptions : option.TrojanInboundOptions {
118+ Options : & option.TrojanInboundOptions {
119119 ListenOptions : option.ListenOptions {
120120 Listen : common .Ptr (badoption .Addr (netip .IPv4Unspecified ())),
121121 ListenPort : serverPort ,
@@ -140,14 +140,14 @@ func TestBrutalTrojan(t *testing.T) {
140140 },
141141 },
142142 },
143- LegacyOutbounds : []option.LegacyOutbound {
143+ Outbounds : []option.Outbound {
144144 {
145145 Type : C .TypeDirect ,
146146 },
147147 {
148148 Type : C .TypeTrojan ,
149149 Tag : "ss-out" ,
150- TrojanOptions : option.TrojanOutboundOptions {
150+ Options : & option.TrojanOutboundOptions {
151151 ServerOptions : option.ServerOptions {
152152 Server : "127.0.0.1" ,
153153 ServerPort : serverPort ,
@@ -199,11 +199,11 @@ func TestBrutalTrojan(t *testing.T) {
199199func TestBrutalVMess (t * testing.T ) {
200200 user , _ := uuid .NewV4 ()
201201 startInstance (t , option.Options {
202- LegacyInbounds : []option.LegacyInbound {
202+ Inbounds : []option.Inbound {
203203 {
204204 Type : C .TypeMixed ,
205205 Tag : "mixed-in" ,
206- MixedOptions : option.HTTPMixedInboundOptions {
206+ Options : & option.HTTPMixedInboundOptions {
207207 ListenOptions : option.ListenOptions {
208208 Listen : common .Ptr (badoption .Addr (netip .IPv4Unspecified ())),
209209 ListenPort : clientPort ,
@@ -212,7 +212,7 @@ func TestBrutalVMess(t *testing.T) {
212212 },
213213 {
214214 Type : C .TypeVMess ,
215- VMessOptions : option.VMessInboundOptions {
215+ Options : & option.VMessInboundOptions {
216216 ListenOptions : option.ListenOptions {
217217 Listen : common .Ptr (badoption .Addr (netip .IPv4Unspecified ())),
218218 ListenPort : serverPort ,
@@ -229,14 +229,14 @@ func TestBrutalVMess(t *testing.T) {
229229 },
230230 },
231231 },
232- LegacyOutbounds : []option.LegacyOutbound {
232+ Outbounds : []option.Outbound {
233233 {
234234 Type : C .TypeDirect ,
235235 },
236236 {
237237 Type : C .TypeVMess ,
238238 Tag : "ss-out" ,
239- VMessOptions : option.VMessOutboundOptions {
239+ Options : & option.VMessOutboundOptions {
240240 ServerOptions : option.ServerOptions {
241241 Server : "127.0.0.1" ,
242242 ServerPort : serverPort ,
@@ -281,11 +281,11 @@ func TestBrutalVMess(t *testing.T) {
281281func TestBrutalVLESS (t * testing.T ) {
282282 user , _ := uuid .NewV4 ()
283283 startInstance (t , option.Options {
284- LegacyInbounds : []option.LegacyInbound {
284+ Inbounds : []option.Inbound {
285285 {
286286 Type : C .TypeMixed ,
287287 Tag : "mixed-in" ,
288- MixedOptions : option.HTTPMixedInboundOptions {
288+ Options : & option.HTTPMixedInboundOptions {
289289 ListenOptions : option.ListenOptions {
290290 Listen : common .Ptr (badoption .Addr (netip .IPv4Unspecified ())),
291291 ListenPort : clientPort ,
@@ -294,7 +294,7 @@ func TestBrutalVLESS(t *testing.T) {
294294 },
295295 {
296296 Type : C .TypeVLESS ,
297- VLESSOptions : option.VLESSInboundOptions {
297+ Options : & option.VLESSInboundOptions {
298298 ListenOptions : option.ListenOptions {
299299 Listen : common .Ptr (badoption .Addr (netip .IPv4Unspecified ())),
300300 ListenPort : serverPort ,
@@ -328,14 +328,14 @@ func TestBrutalVLESS(t *testing.T) {
328328 },
329329 },
330330 },
331- LegacyOutbounds : []option.LegacyOutbound {
331+ Outbounds : []option.Outbound {
332332 {
333333 Type : C .TypeDirect ,
334334 },
335335 {
336336 Type : C .TypeVLESS ,
337337 Tag : "ss-out" ,
338- VLESSOptions : option.VLESSOutboundOptions {
338+ Options : & option.VLESSOutboundOptions {
339339 ServerOptions : option.ServerOptions {
340340 Server : "127.0.0.1" ,
341341 ServerPort : serverPort ,
0 commit comments