mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-04 16:37:12 -05:00
Fix: correct a type assertion of dokodemo simplified config
Fixes tproxy not working with jsonv5 config
This commit is contained in:
parent
9484390b18
commit
4ea9a5638e
@ -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)
|
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
|
receiverSettings.ReceiveOriginalDestination = content.FollowRedirect
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user