Skip to content

Commit 5dc3fc8

Browse files
committed
fix(hukk): http server not bind to local machine ip
this make the docker container not able to bind the port out to host
1 parent 0bbfb5d commit 5dc3fc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hukk.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class Hukk {
2525

2626
listen(port: number, callback?: () => void) {
2727
this.port = port || Hukk.DEFAULT_PORT;
28-
this.server.listen(this.port, 'localhost', () => {
28+
this.server.listen(this.port, '0.0.0.0', () => {
2929
this._onStart(callback);
3030
});
3131
}

0 commit comments

Comments
 (0)