2
0
의 미러 https://git.coolaj86.com/coolaj86/telebit-relay.js.git synced 2025-06-30 15:26:31 +00:00

minor optimization

This commit is contained in:
AJ ONeal 2018-05-31 06:18:02 +00:00
부모 05cb157cfc
커밋 643b5a62ea
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@ -154,7 +154,8 @@ function applyConfig(config) {
state.tcp[port].listen(port, function () {
console.log('listening plain TCP on ' + port);
});
state.tcp[port].on('connection', function (conn) { netConnHandlers.tcp(conn, port); });
//state.tcp[port].on('connection', function (conn) { netConnHandlers.tcp(conn, port); });
state.tcp[port].on('connection', netConnHandlers.tcp);
});
//});
}

파일 보기

@ -54,7 +54,7 @@ module.exports.createTcpConnectionHandler = function (copts) {
var Devices = copts.Devices;
return function onTcpConnection(conn, serviceport) {
console.log('[new conn] from port', serviceport);
serviceport = serviceport || conn.localPort;
// this works when I put it here, but I don't know if it's tls yet here
// httpsServer.emit('connection', socket);
//tls3000.emit('connection', socket);