From 4ea9a5638e48c70830f32ebded657d78e663c596 Mon Sep 17 00:00:00 2001 From: Huang-Huang Bao Date: Sat, 7 May 2022 01:41:27 +0800 Subject: [PATCH] Fix: correct a type assertion of dokodemo simplified config Fixes tproxy not working with jsonv5 config --- infra/conf/v5cfg/inbound.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/conf/v5cfg/inbound.go b/infra/conf/v5cfg/inbound.go index 3fcab814b..5adca9d71 100644 --- a/infra/conf/v5cfg/inbound.go +++ b/infra/conf/v5cfg/inbound.go @@ -69,7 +69,7 @@ func (c InboundConfig) BuildV5(ctx context.Context) (proto.Message, error) { return nil, newError("unable to load inbound protocol config").Base(err) } - if content, ok := inboundConfigPack.(*dokodemo.Config); ok { + if content, ok := inboundConfigPack.(*dokodemo.SimplifiedConfig); ok { receiverSettings.ReceiveOriginalDestination = content.FollowRedirect }