Explorar el Código

Update strategy_leastping.go (#1019)

fanyiguan hace 4 años
padre
commit
09d900c753
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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 {
 		for _, v := range status {
 			if outboundsList.contains(v.OutboundTag) && v.Alive && v.Delay < leastPing {
 			if outboundsList.contains(v.OutboundTag) && v.Alive && v.Delay < leastPing {
 				selectedOutboundName = v.OutboundTag
 				selectedOutboundName = v.OutboundTag
+				leastPing = v.Delay
 			}
 			}
 		}
 		}
 		return selectedOutboundName
 		return selectedOutboundName