1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-06-11 21:49:26 -04:00

replace TypedMessage with anypb.Any

This commit is contained in:
Shelikhoo
2021-06-19 14:36:54 +01:00
parent add375390e
commit ba2dd5995d
65 changed files with 721 additions and 859 deletions

View File

@@ -3,6 +3,7 @@ package core_test
import (
"context"
"crypto/rand"
"google.golang.org/protobuf/types/known/anypb"
"io"
"testing"
"time"
@@ -46,7 +47,7 @@ func TestV2RayDial(t *testing.T) {
defer tcpServer.Close()
config := &core.Config{
App: []*serial.TypedMessage{
App: []*anypb.Any{
serial.ToTypedMessage(&dispatcher.Config{}),
serial.ToTypedMessage(&proxyman.InboundConfig{}),
serial.ToTypedMessage(&proxyman.OutboundConfig{}),
@@ -96,7 +97,7 @@ func TestV2RayDialUDPConn(t *testing.T) {
defer udpServer.Close()
config := &core.Config{
App: []*serial.TypedMessage{
App: []*anypb.Any{
serial.ToTypedMessage(&dispatcher.Config{}),
serial.ToTypedMessage(&proxyman.InboundConfig{}),
serial.ToTypedMessage(&proxyman.OutboundConfig{}),
@@ -163,7 +164,7 @@ func TestV2RayDialUDP(t *testing.T) {
defer udpServer2.Close()
config := &core.Config{
App: []*serial.TypedMessage{
App: []*anypb.Any{
serial.ToTypedMessage(&dispatcher.Config{}),
serial.ToTypedMessage(&proxyman.InboundConfig{}),
serial.ToTypedMessage(&proxyman.OutboundConfig{}),