Skip to content

Commit b682d85

Browse files
committed
try
1 parent 080108d commit b682d85

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class UtapiServer {
137137
https: config.https === true,
138138
});
139139
});
140-
this.server.listen(this.port);
140+
this.server.listen(this.port, "127.0.0.1");
141141
}
142142

143143
/*

libV2/server/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class UtapiServer extends Process {
6262
cacheBackend: config.cacheBackend,
6363
})
6464
.info(`Server listening on ${config.port}`);
65-
await server.listen(config.port);
65+
await server.listen(config.port, "127.0.0.1");
6666
}
6767

6868
async _setup() {

tests/utils/mock/BucketD.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class BucketD {
196196
start() {
197197
this._initiateRoutes();
198198
const port = 9000;
199-
this._server = http.createServer(this._app).listen(port);
199+
this._server = http.createServer(this._app).listen(port, "127.0.0.1");
200200
}
201201

202202
end() {

tests/utils/mock/Vault.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Vault {
2121

2222
start() {
2323
const { port } = config.vaultd;
24-
this._server = http.createServer(this._onRequest).listen(port);
24+
this._server = http.createServer(this._onRequest).listen(port, "127.0.0.1");
2525
}
2626

2727
end() {

0 commit comments

Comments
 (0)