Explorar el Código

Fix server burst parameters

Rod Hynes hace 5 años
padre
commit
110b887633
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      psiphon/server/tunnelServer.go

+ 2 - 2
psiphon/server/tunnelServer.go

@@ -1378,8 +1378,8 @@ func (sshClient *sshClient) run(
 	if !p.IsNil() {
 	if !p.IsNil() {
 		upstreamTargetBytes := int64(p.Int(parameters.ServerBurstUpstreamTargetBytes))
 		upstreamTargetBytes := int64(p.Int(parameters.ServerBurstUpstreamTargetBytes))
 		upstreamDeadline := p.Duration(parameters.ServerBurstUpstreamDeadline)
 		upstreamDeadline := p.Duration(parameters.ServerBurstUpstreamDeadline)
-		downstreamTargetBytes := int64(p.Int(parameters.ServerBurstUpstreamTargetBytes))
-		downstreamDeadline := p.Duration(parameters.ServerBurstUpstreamDeadline)
+		downstreamTargetBytes := int64(p.Int(parameters.ServerBurstDownstreamTargetBytes))
+		downstreamDeadline := p.Duration(parameters.ServerBurstDownstreamDeadline)
 
 
 		if (upstreamDeadline != 0 && upstreamTargetBytes != 0) ||
 		if (upstreamDeadline != 0 && upstreamTargetBytes != 0) ||
 			(downstreamDeadline != 0 && downstreamTargetBytes != 0) {
 			(downstreamDeadline != 0 && downstreamTargetBytes != 0) {