1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-11-23 12:02:58 -05:00

improve commands

(rebased from ebbf31f07e)
This commit is contained in:
Jebbs
2021-02-21 23:02:42 +08:00
committed by Shelikhoo
parent fa0cf6db26
commit 2523d77919
67 changed files with 1723 additions and 1220 deletions

View File

@@ -61,7 +61,7 @@ func TestV2RayDial(t *testing.T) {
cfgBytes, err := proto.Marshal(config)
common.Must(err)
server, err := core.StartInstance("protobuf", cfgBytes)
server, err := core.StartInstance(core.FormatProtobuf, cfgBytes)
common.Must(err)
defer server.Close()
@@ -111,7 +111,7 @@ func TestV2RayDialUDPConn(t *testing.T) {
cfgBytes, err := proto.Marshal(config)
common.Must(err)
server, err := core.StartInstance("protobuf", cfgBytes)
server, err := core.StartInstance(core.FormatProtobuf, cfgBytes)
common.Must(err)
defer server.Close()
@@ -178,7 +178,7 @@ func TestV2RayDialUDP(t *testing.T) {
cfgBytes, err := proto.Marshal(config)
common.Must(err)
server, err := core.StartInstance("protobuf", cfgBytes)
server, err := core.StartInstance(core.FormatProtobuf, cfgBytes)
common.Must(err)
defer server.Close()