1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00

fix: Remove unix socket before listen

This commit is contained in:
Lucius Gaitán 2017-10-21 04:06:46 -02:00
parent d4e3bb0327
commit d42a41e134

@ -172,6 +172,10 @@ function afterConfigLoad() {
webServer = http.createServer(app);
}
if (addr.path) {
fs.unlinkSync(addr.path);
}
webServer
.listen(addr.port || addr.path, addr.host)
.on('error', function(err) {