uncomment priviledge drop
This commit is contained in:
parent
70d960667a
commit
3ffa9f45b8
1 changed files with 2 additions and 2 deletions
4
web.js
4
web.js
|
@ -81,8 +81,8 @@ exports.init = function(dmx) {
|
|||
var app = http.createServer(handler)
|
||||
app.listen(dmx.config.port, '::', null, function() {
|
||||
try {
|
||||
//process.setgid(dmx.config.gid);
|
||||
//process.setuid(dmx.config.uid);
|
||||
process.setgid(dmx.config.gid);
|
||||
process.setuid(dmx.config.uid);
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
process.exit(1);
|
||||
|
|
Loading…
Reference in a new issue