1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-18 07:17:32 -05:00

fix fallbackTag missing on leastping balancer

This fix fallbackTag not working when balancer type is set to "leastping"
This commit is contained in:
povsister 2024-08-03 19:04:20 +08:00 committed by Xiaokang Wang (Shelikhoo)
parent c1bc8a0a42
commit 863479bb81

View File

@ -144,7 +144,7 @@ func (br *BalancingRule) Build(ohm outbound.Manager, dispatcher routing.Dispatch
return &Balancer{ return &Balancer{
selectors: br.OutboundSelector, selectors: br.OutboundSelector,
strategy: &LeastPingStrategy{config: s}, strategy: &LeastPingStrategy{config: s},
ohm: ohm, ohm: ohm, fallbackTag: br.FallbackTag,
}, nil }, nil
case "leastload": case "leastload":
i, err := serial.GetInstanceOf(br.StrategySettings) i, err := serial.GetInstanceOf(br.StrategySettings)