From: Darren Date: Fri, 24 Jan 2014 12:48:13 +0000 (+0000) Subject: Removing proxy test+debugging output X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6d52928ca84c8469ea8b0682db128355ca3f1abf;p=KiwiIRC.git Removing proxy test+debugging output --- diff --git a/proxytest.js b/proxytest.js deleted file mode 100644 index 26d848b..0000000 --- a/proxytest.js +++ /dev/null @@ -1,37 +0,0 @@ -var Proxy = require('./server/proxy'), - Identd = require('./server/identd'); - -var port_pairs = {}; - - -var serv = new Proxy.ProxyServer(); -serv.listen(7779, '0.0.0.0'); - -serv.on('connection_open', function(pipe) { - pipe.identd_pair = pipe.irc_socket.localPort.toString() + '_' + pipe.irc_socket.remotePort.toString(); - console.log('[IDENTD] opened ' + pipe.identd_pair); - port_pairs[pipe.identd_pair] = pipe.meta; -}); - -serv.on('connection_close', function(pipe) { - console.log('[IDENTD] closed ' + pipe.identd_pair); - delete port_pairs[pipe.identd_pair]; -}); - - - - -// Username lookup function for the identd -var identdResolveUser = function(port_here, port_there, callback) { - var key = port_here.toString() + '_' + port_there.toString(); - console.log('[IDENTD] lookup ' + key); - return port_pairs[key].username; -}; - -var identd_server = new Identd({ - bind_addr: '0.0.0.0', - bind_port: 113, - user_id: identdResolveUser - }); - -identd_server.start(); \ No newline at end of file diff --git a/server/proxy.js b/server/proxy.js index 1dfaa9b..0d30a79 100644 --- a/server/proxy.js +++ b/server/proxy.js @@ -12,7 +12,7 @@ module.exports = { }; function debug() { - console.log.apply(console, arguments); + //console.log.apply(console, arguments); } // Socket connection responses