add default host

This commit is contained in:
Soph :3 2024-05-03 20:08:09 +03:00
parent b5e4cabe4d
commit 6715d264e4
Signed by: sophie
GPG key ID: EDA5D222A0C270F2

View file

@ -36,7 +36,7 @@ export class Server {
async start(port: number) {
this.server = Bun.listen<{dataBuffer?: Buffer}>({
hostname: process.env.HOST!,
hostname: process.env.HOST || "127.0.0.1",
port: +process.env.PORT!,
socket: {
data: (socket, data) => {