We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b02df77 commit 61636afCopy full SHA for 61636af
packages/core/src/utils/fetch.ts
@@ -147,7 +147,8 @@ export async function fetch<T>(
147
).hostname;
148
149
const requestParams: RequestOptions = {
150
- host: url.hostname, // IP
+ // for ipv6 remove square brackets as they come due to url standard
151
+ host: url.hostname.replace(/^\[|\]$/g, ''), // IP
152
port: url.port,
153
method: options.method,
154
path: url.pathname + url.search,
0 commit comments