Fix v2ray HTTP/1.1 transport compatibility

This commit is contained in:
世界 2023-04-07 18:20:07 +08:00
parent 05bb1b88c3
commit 46c318c6fe
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
9 changed files with 208 additions and 101 deletions

View file

@ -37,7 +37,10 @@ func startInstance(t *testing.T, options option.Options) *box.Box {
var instance *box.Box
var err error
for retry := 0; retry < 3; retry++ {
instance, err = box.New(ctx, options, nil)
instance, err = box.New(box.Options{
Context: ctx,
Options: options,
})
require.NoError(t, err)
err = instance.Start()
if err != nil {