Skip to content

Commit f38be2d

Browse files
fix(watcher): use config.address for reload notifications
1 parent 5d90279 commit f38be2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

serveronly/watcher.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ function startServer () {
119119
* Send reload notification to all connected clients
120120
*/
121121
function notifyClientsToReload () {
122-
const { port } = getServerConfig();
122+
const { port, address } = getServerConfig();
123123
const options = {
124-
hostname: "localhost",
124+
hostname: address,
125125
port: port,
126126
path: "/reload",
127127
method: "GET"

0 commit comments

Comments
 (0)