diff options
author | Yoann Ciabaud <yoann@atacma.agency> | 2015-09-28 10:57:08 +0300 |
---|---|---|
committer | Yoann Ciabaud <yoann@atacma.agency> | 2015-11-09 16:31:25 +0300 |
commit | 6e4c7ffe7ee003734c07c780c15cf757fce38145 (patch) | |
tree | acd14945c1692ca39d74073d5c23cdca3d836c2d /bin | |
parent | 8c14314beea9b3dd2c5dc92a095600724850cbb2 (diff) |
Pick a new port on EACCES
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cmd.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -320,7 +320,7 @@ function runDownload (torrentId) { .on('error', function (err) { // In case the port is unusable - if (err.code === 'EADDRINUSE') { + if (err.code === 'EADDRINUSE' || err.code === 'EACCES') { // Let the OS choose one for us server.listen(0, initServer) } |