Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoann Ciabaud <yoann@atacma.agency>2015-09-28 10:57:08 +0300
committerYoann Ciabaud <yoann@atacma.agency>2015-11-09 16:31:25 +0300
commit6e4c7ffe7ee003734c07c780c15cf757fce38145 (patch)
treeacd14945c1692ca39d74073d5c23cdca3d836c2d /bin/cmd.js
parent8c14314beea9b3dd2c5dc92a095600724850cbb2 (diff)
Pick a new port on EACCES
Diffstat (limited to 'bin/cmd.js')
-rwxr-xr-xbin/cmd.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index 77ed919..c342be3 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -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)
}