1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-05 16:55:27 -05: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

@@ -2,6 +2,7 @@ package outbound
import (
"context"
"github.com/v2fly/v2ray-core/v4/common/serial"
core "github.com/v2fly/v2ray-core/v4"
"github.com/v2fly/v2ray-core/v4/app/proxyman"
@@ -68,7 +69,7 @@ func NewHandler(ctx context.Context, config *core.OutboundHandlerConfig) (outbou
}
if config.SenderSettings != nil {
senderSettings, err := config.SenderSettings.GetInstance()
senderSettings, err := serial.GetInstanceOf(config.SenderSettings)
if err != nil {
return nil, err
}
@@ -85,7 +86,7 @@ func NewHandler(ctx context.Context, config *core.OutboundHandlerConfig) (outbou
}
}
proxyConfig, err := config.ProxySettings.GetInstance()
proxyConfig, err := serial.GetInstanceOf(config.ProxySettings)
if err != nil {
return nil, err
}