mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	No more http2
This commit is contained in:
		@@ -78,10 +78,10 @@ function startSingle(clustered, redis_enabled) {
 | 
			
		||||
            ca: ca
 | 
			
		||||
        };
 | 
			
		||||
        var https = require('https');
 | 
			
		||||
        server = require('http2').createServer(credentials, routingFunction);
 | 
			
		||||
        server = https.Server(credentials, routingFunction);
 | 
			
		||||
    } catch(err){
 | 
			
		||||
        console.log("Starting without https (probably on localhost)");
 | 
			
		||||
        server = require('http2').createServer(routingFunction);
 | 
			
		||||
        server = http.createServer(routingFunction);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if(clustered) {
 | 
			
		||||
 
 | 
			
		||||
@@ -619,7 +619,7 @@ var Channel = {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function get_history() {
 | 
			
		||||
    if(socket.id) {
 | 
			
		||||
    if(socket && socket.id) {
 | 
			
		||||
        var p = Crypt.get_userpass();
 | 
			
		||||
        var c = Crypt.crypt_pass(p, true);
 | 
			
		||||
        socket.emit("get_history", {channel: chan.toLowerCase(), all: false, pass: embed ? '' : c});
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user