Skip to content

Commit 66715f9

Browse files
committed
fix: send req.url to acme
1 parent fb1a1b7 commit 66715f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class CoCreateLazyLoader {
6666
})
6767

6868
if (!org || !org.object || !org.object[0]) {
69+
// TODO: hostNotFound is not defined
6970
if (!hostNotFound)
7071
hostNotFound = await getDefaultFile('/hostNotFound.html')
7172
return sendResponse(hostNotFound.object[0].src, 404, { 'Content-Type': 'text/html', 'storage': organization.storage })
@@ -77,7 +78,7 @@ class CoCreateLazyLoader {
7778

7879
hosts[hostname] = organization
7980

80-
await this.acme.checkCertificate(hostname, organization._id)
81+
await this.acme.checkCertificate(hostname, organization._id, req.url)
8182

8283
if (valideUrl.pathname.startsWith('/webhooks/')) {
8384
let name = req.url.split('/')[2]; // Assuming URL structure is /webhook/name/...

0 commit comments

Comments
 (0)