Просмотр исходного кода

Ensure selected network latency multiplier is always applied

Rod Hynes 4 лет назад
Родитель
Сommit
1bf66e2542
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      psiphon/dialParameters.go

+ 4 - 0
psiphon/dialParameters.go

@@ -338,6 +338,10 @@ func MakeDialParameters(
 			p.Float(parameters.NetworkLatencyMultiplierLambda))
 	}
 
+	// After this point, any tactics parameters that apply the network latency
+	// multiplier will use this selected value.
+	p = config.GetParameters().GetCustom(dialParams.NetworkLatencyMultiplier)
+
 	if !isReplay && !isExchanged {
 
 		// TODO: should there be a pre-check of selectProtocol before incurring