From e78469e9f66dbaf9d3e4e7ad44e3d4ddcf0dcf03 Mon Sep 17 00:00:00 2001 From: Isaac Date: Wed, 29 May 2024 21:32:31 +0100 Subject: [PATCH] fix(http): ipv6 support --- src/lib/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/http.js b/src/lib/http.js index 9dbcdf2..31ebf84 100644 --- a/src/lib/http.js +++ b/src/lib/http.js @@ -1 +1 @@ -module.exports.domain = process.env.HTTP_EXTERNAL.match(/http(s?):\/\/(?[a-zA-Z0-9\-_.]+)(:\d+)?/).groups.domain; \ No newline at end of file +module.exports.domain = new URL(process.env.HTTP_EXTERNAL).hostname;