mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +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}) }
|
||||
}
|
||||
cmd.https = function(msg, peer){ log;
|
||||
cmd.https = function(msg, peer){ var log;
|
||||
if(!msg.email || !msg.domain){
|
||||
mesh.say({dam: '!', err: 'Domain/email missing, use `location.hostname`!'});
|
||||
return;
|
||||
@ -23,7 +23,7 @@ module.exports = function(root){
|
||||
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){}
|
||||
if(!pass || (msg.pass||'').trim() != pass){ return }
|
||||
fs.writeFile(examp+'/../updated', +new Date+'', function(){});
|
||||
|
Loading…
x
Reference in New Issue
Block a user