mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-27 22:59:51 -05:00
fix: Remove unix socket before listen
This commit is contained in:
parent
d4e3bb0327
commit
d42a41e134
1 changed files with 4 additions and 0 deletions
|
@ -172,6 +172,10 @@ function afterConfigLoad() {
|
||||||
webServer = http.createServer(app);
|
webServer = http.createServer(app);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (addr.path) {
|
||||||
|
fs.unlinkSync(addr.path);
|
||||||
|
}
|
||||||
|
|
||||||
webServer
|
webServer
|
||||||
.listen(addr.port || addr.path, addr.host)
|
.listen(addr.port || addr.path, addr.host)
|
||||||
.on('error', function(err) {
|
.on('error', function(err) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue