mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-04-04 12:27:36 +03:00
Fix v2ray HTTP/1.1 transport compatibility
This commit is contained in:
parent
05bb1b88c3
commit
46c318c6fe
9 changed files with 208 additions and 101 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue