Parcourir la source

Fix: limit check logic error in d5223dc

Rod Hynes il y a 8 ans
Parent
commit
bb88abe92a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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
 		state = &sshClient.udpTrafficState
 	}
 	}
 
 
-	if max == 0 && state.concurrentPortForwardCount >= int64(max) {
+	if max > 0 && state.concurrentPortForwardCount >= int64(max) {
 		return false
 		return false
 	}
 	}