add default host
This commit is contained in:
parent
b5e4cabe4d
commit
6715d264e4
|
@ -36,7 +36,7 @@ export class Server {
|
||||||
|
|
||||||
async start(port: number) {
|
async start(port: number) {
|
||||||
this.server = Bun.listen<{dataBuffer?: Buffer}>({
|
this.server = Bun.listen<{dataBuffer?: Buffer}>({
|
||||||
hostname: process.env.HOST!,
|
hostname: process.env.HOST || "127.0.0.1",
|
||||||
port: +process.env.PORT!,
|
port: +process.env.PORT!,
|
||||||
socket: {
|
socket: {
|
||||||
data: (socket, data) => {
|
data: (socket, data) => {
|
||||||
|
|
Loading…
Reference in a new issue