1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 09:36:34 -05:00

Fix: Support both dokodemo inbound config types

This commit is contained in:
Shelikhoo 2022-06-25 19:41:45 +01:00
parent 4ea9a5638e
commit 3673ed2be8
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

View File

@ -72,6 +72,9 @@ func (c InboundConfig) BuildV5(ctx context.Context) (proto.Message, error) {
if content, ok := inboundConfigPack.(*dokodemo.SimplifiedConfig); ok {
receiverSettings.ReceiveOriginalDestination = content.FollowRedirect
}
if content, ok := inboundConfigPack.(*dokodemo.Config); ok {
receiverSettings.ReceiveOriginalDestination = content.FollowRedirect
}
return &core.InboundHandlerConfig{
Tag: c.Tag,