mistakenly left some test code.
This commit is contained in:
billchurch 2016-05-20 10:51:44 -04:00
parent bc20a06497
commit e08878d81a

View file

@ -9,22 +9,6 @@ var ssh = require('ssh2');
var readConfig = require('read-config'),
config = readConfig(__dirname + '/config.json');
console.log(config);
var isPortTaken = function(port, fn) {
var net = require('net')
var tester = net.createServer()
.once('error', function (err) {
if (err.code != 'EADDRINUSE') return fn(err)
fn(null, true)
})
.once('listening', function() {
tester.once('close', function() { fn(null, false) })
.close()
})
.listen(port)
}
function checkParams(arr) {
return function(req, res, next) {
// Make sure each param listed in arr is present in req.query