Diff

Differences From Artifact [f9156a50f9]:

To Artifact [393672b6c1]:


   704    704   	if (!socket) {
   705    705   		return;
   706    706   	}
   707    707   
   708    708   	/*
   709    709   	 * Only accept connections from approved apps
   710    710   	 */
   711         -	if (!socket.sender || !socket.sender.id || !cackeySSHAgentApprovedApps.includes(socket.sender.id)) {
          711  +	if (!socket.sender || !socket.sender.id || cackeySSHAgentApprovedApps.indexOf(socket.sender.id) == -1) {
   712    712   		console.log("[cackeySSH] Ignoring unapproved app: ", socket.sender);
   713    713   
   714    714   		return;
   715    715   	}
   716    716   
   717    717   	console.log("[cackeySSH] Accepted connection from: ", socket.sender.id);
   718    718   	socket.onMessage.addListener(function(request) {