fix(http): ipv6 support

This commit is contained in:
Isaac 2024-05-29 21:32:31 +01:00
parent 8bef2eb5f8
commit e78469e9f6
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33

View File

@ -1 +1 @@
module.exports.domain = process.env.HTTP_EXTERNAL.match(/http(s?):\/\/(?<domain>[a-zA-Z0-9\-_.]+)(:\d+)?/).groups.domain;
module.exports.domain = new URL(process.env.HTTP_EXTERNAL).hostname;