Refactor platform command api

This commit is contained in:
世界
2023-03-01 10:37:47 +08:00
parent 0ca344df5f
commit 5af8d001ae
11 changed files with 342 additions and 204 deletions

View File

@@ -37,7 +37,7 @@ 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)
instance, err = box.New(ctx, options, nil)
require.NoError(t, err)
err = instance.Start()
if err != nil {

View File

@@ -167,7 +167,7 @@ func testVLESSXray(t *testing.T, packetEncoding string, flow string) {
},
UUID: userID.String(),
Flow: flow,
PacketEncoding: packetEncoding,
PacketEncoding: &packetEncoding,
TLS: &option.OutboundTLSOptions{
Enabled: true,
ServerName: "example.org",