Skip to content

Commit

Permalink
fix(http): ipv6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed May 29, 2024
1 parent 8bef2eb commit e78469e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/http.js
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit e78469e

Please sign in to comment.