Parcourir la source

Fix: correct a type assertion of dokodemo simplified config

Fixes tproxy not working with jsonv5 config
Huang-Huang Bao il y a 3 ans
Parent
commit
4ea9a5638e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      infra/conf/v5cfg/inbound.go

+ 1 - 1
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
 	}