diff options
Diffstat (limited to 'src/ircd.mjs')
-rw-r--r-- | src/ircd.mjs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/ircd.mjs b/src/ircd.mjs deleted file mode 100644 index 1924350..0000000 --- a/src/ircd.mjs +++ /dev/null @@ -1,19 +0,0 @@ -import fs from "node:fs"; -import net from "node:net"; - -import * as hero from "./hero.mjs"; - - -const server = net.createServer(socket => { - socket.write("olar\r\n"); - socket.pipe(socket); -}); - -export const app = async path => { - if (fs.existsSync(path)) { - fs.unlinkSync(path); - } - server.listen(path, () => { - hero.log.info({ type: "starting-server", path }); - }); -}; |