Explorar el Código

Fix: limit check logic error in d5223dc

Rod Hynes hace 8 años
padre
commit
bb88abe92a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      psiphon/server/tunnelServer.go

+ 1 - 1
psiphon/server/tunnelServer.go

@@ -1755,7 +1755,7 @@ func (sshClient *sshClient) allocatePortForward(portForwardType int) bool {
 		state = &sshClient.udpTrafficState
 	}
 
-	if max == 0 && state.concurrentPortForwardCount >= int64(max) {
+	if max > 0 && state.concurrentPortForwardCount >= int64(max) {
 		return false
 	}