Skip to content

Commit e78469e

Browse files
committed
fix(http): ipv6 support
1 parent 8bef2eb commit e78469e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/http.js

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

0 commit comments

Comments
 (0)