diff --git a/server.js b/server.js index bf1a757..2e6630d 100644 --- a/server.js +++ b/server.js @@ -55,6 +55,11 @@ async function init () { app.listen(sock, function () { console.log('Started server on', sock) }) + + try { + await fsPromises.access(sock, fs.constants.F_OK) + await fsPromises.chmod(sock, 0o777) + } catch (e) {} } module.exports = init