0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-20 22:52:46 -05:00

Merge pull request #373 from lgaitan/unix-socket

Unlink socket before listening
This commit is contained in:
Juan Picado @jotadeveloper 2017-10-21 09:32:11 +02:00 committed by GitHub
commit 31876459e2

View file

@ -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) {