Skip to content

Commit ebff346

Browse files
committed
added * ip listen
1 parent 61e6179 commit ebff346

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

hive/hive.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ fastify.put('/wasp/reportin/:id', (req, res) =>
9090
{
9191
gError('/wasp/reportin/:id', res);
9292
}
93-
if(waspDoneCount == waspsRunningCount)
93+
if(waspDoneCount >= waspsRunningCount)
9494
{
9595
genReport();
9696
}
@@ -121,7 +121,7 @@ fastify.put('/wasp/reportin/:id/failed', (req, res) =>
121121
{
122122
gError('/wasp/reportin/:id/failed', res);
123123
}
124-
if(waspDoneCount == waspsRunningCount)
124+
if(waspDoneCount >= waspsRunningCount)
125125
{
126126
genReport();
127127
}
@@ -341,4 +341,4 @@ var gError = function(route, res)
341341
}
342342

343343
console.log('Hive ready to release the wasps!')
344-
fastify.listen(process.argv[2] || process.env.WWB_HIVE_PORT || 4269)
344+
fastify.listen(process.argv[2] || process.env.WWB_HIVE_PORT || 4269, '0.0.0.0')

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "waspswithbazookas",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "Its like bees with machine guns but way more power",
55
"main": "./hive/hive.js",
66
"scripts": {

wasp/wasp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ else
3232
else
3333
{
3434
id = JSON.parse(body).id;
35-
fastify.listen(port)
35+
fastify.listen(port, '0.0.0.0')
3636
console.log(id + ' ready and listing for your orders!')
3737
}
3838
})

wasp/wrk.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
wrk.method = "GET"

0 commit comments

Comments
 (0)