Skip to content

Commit

Permalink
fix(hukk): http server not bind to local machine ip
Browse files Browse the repository at this point in the history
this make the docker container not able to bind the port out to host
  • Loading branch information
nampdn committed Nov 26, 2018
1 parent 0bbfb5d commit 5dc3fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hukk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class Hukk {

listen(port: number, callback?: () => void) {
this.port = port || Hukk.DEFAULT_PORT;
this.server.listen(this.port, 'localhost', () => {
this.server.listen(this.port, '0.0.0.0', () => {
this._onStart(callback);
});
}
Expand Down

0 comments on commit 5dc3fc8

Please sign in to comment.