From ec105acfb81424135a5940651970e082d660490d Mon Sep 17 00:00:00 2001 From: b1ek Date: Fri, 5 May 2023 14:36:22 +1000 Subject: [PATCH] disable settin hostname to blek.codes --- src/emulator/commands/set-hostname.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/emulator/commands/set-hostname.js b/src/emulator/commands/set-hostname.js index 1cc7916..fe3e325 100644 --- a/src/emulator/commands/set-hostname.js +++ b/src/emulator/commands/set-hostname.js @@ -22,6 +22,11 @@ module.exports = (argv, terminal, zsh) => { return 0; } + if (argv[1] == 'blek.codes') { + terminal.writeln(`${argv[0]}: cannot set hostname to ${argv[1]}: permission denied (you are not on blek.codes you moron)`); + return 1; + } + data.ip = argv[1]; zsh.update_prompt(); return 0;