mirror of
https://github.com/amark/gun.git
synced 2025-06-06 22:26:48 +00:00
sleepy ugh
This commit is contained in:
parent
bf1565398b
commit
bfedfc027c
@ -7,7 +7,7 @@ module.exports = function(root){
|
|||||||
}
|
}
|
||||||
try{ (cmd[msg.try]||cmd.any)(msg, peer); }catch(err){ mesh.say({dam: '!', err: "service error: "+err}) }
|
try{ (cmd[msg.try]||cmd.any)(msg, peer); }catch(err){ mesh.say({dam: '!', err: "service error: "+err}) }
|
||||||
}
|
}
|
||||||
cmd.https = function(msg, peer){ log;
|
cmd.https = function(msg, peer){ var log;
|
||||||
if(!msg.email || !msg.domain){
|
if(!msg.email || !msg.domain){
|
||||||
mesh.say({dam: '!', err: 'Domain/email missing, use `location.hostname`!'});
|
mesh.say({dam: '!', err: 'Domain/email missing, use `location.hostname`!'});
|
||||||
return;
|
return;
|
||||||
@ -23,7 +23,7 @@ module.exports = function(root){
|
|||||||
setTimeout(function(){ process.exit() },999);
|
setTimeout(function(){ process.exit() },999);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
cmd.update = function(msg, peer){ log, pass;
|
cmd.update = function(msg, peer){ var log, pass;
|
||||||
try{ pass = (''+fs.readFileSync(home+'/pass')).trim() }catch(e){}
|
try{ pass = (''+fs.readFileSync(home+'/pass')).trim() }catch(e){}
|
||||||
if(!pass || (msg.pass||'').trim() != pass){ return }
|
if(!pass || (msg.pass||'').trim() != pass){ return }
|
||||||
fs.writeFile(examp+'/../updated', +new Date+'', function(){});
|
fs.writeFile(examp+'/../updated', +new Date+'', function(){});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user