Skip to content

Commit

Permalink
Fix: Support both dokodemo inbound config types
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaokangwang committed Jun 25, 2022
1 parent 4ea9a56 commit 3673ed2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions infra/conf/v5cfg/inbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3673ed2

Please sign in to comment.