Przeglądaj źródła

Fix: limit check logic error in d5223dc

Rod Hynes 9 lat temu
rodzic
commit
bb88abe92a
1 zmienionych plików z 1 dodań i 1 usunięć
  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
 	}