Преглед изворни кода

Ensure selected network latency multiplier is always applied

Rod Hynes пре 4 година
родитељ
комит
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))
 			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 {
 	if !isReplay && !isExchanged {
 
 
 		// TODO: should there be a pre-check of selectProtocol before incurring
 		// TODO: should there be a pre-check of selectProtocol before incurring