Skip to content

Commit 45d00e4

Browse files
committed
fix: node17 returns ipv6 addresses, which fastify doesn't like
1 parent a585a91 commit 45d00e4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/api/test/ssrf-prevention.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ describe("SSRF Prevention", () => {
3737
await request(quirrel)
3838
.post(
3939
"/queues/" +
40-
encodeURIComponent(
41-
`http://${address.address}:${address.port}/database/drop`
42-
)
40+
encodeURIComponent(`http://localhost:${address.port}/database/drop`)
4341
)
4442
.send({ body: "dropthebase" })
4543
.expect(201);

0 commit comments

Comments
 (0)