Parcourir la source

Update strategy_leastping.go (#1019)

fanyiguan il y a 4 ans
Parent
commit
09d900c753
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      app/router/strategy_leastping.go

+ 1 - 0
app/router/strategy_leastping.go

@@ -41,6 +41,7 @@ func (l *LeastPingStrategy) PickOutbound(strings []string) string {
 		for _, v := range status {
 			if outboundsList.contains(v.OutboundTag) && v.Alive && v.Delay < leastPing {
 				selectedOutboundName = v.OutboundTag
+				leastPing = v.Delay
 			}
 		}
 		return selectedOutboundName