Skip to content

Commit 079e92e

Browse files
Scott OlmsteadLinusBorg
authored andcommitted
Specify the address to listen on (#759)
Currently, this causes the dev server to listen on all addresses by default, which is not the intended behavior, imo.
1 parent 0afaaf6 commit 079e92e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/build/dev-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ devMiddleware.waitUntilValid(() => {
8282
_resolve()
8383
})
8484

85-
var server = app.listen(port)
85+
var server = app.listen(port, 'localhost')
8686

8787
module.exports = {
8888
ready: readyPromise,

0 commit comments

Comments
 (0)