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

Fix: limit check logic error in d5223dc

Rod Hynes 8 лет назад
Родитель
Сommit
bb88abe92a
1 измененных файлов с 1 добавлено и 1 удалено
  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
 	}