Explorar o código

Fix: Support both dokodemo inbound config types

Shelikhoo %!s(int64=3) %!d(string=hai) anos
pai
achega
3673ed2be8
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      infra/conf/v5cfg/inbound.go

+ 3 - 0
infra/conf/v5cfg/inbound.go

@@ -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,