From 6d42ae26298edc3a925dd0ae06f821d406f396ec Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Fri, 26 Jul 2024 12:30:26 -0600 Subject: [PATCH] brackets for ipv6 --- sdk/lib/util/getServiceInterface.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/lib/util/getServiceInterface.ts b/sdk/lib/util/getServiceInterface.ts index b41d8a15f..9148c8f9a 100644 --- a/sdk/lib/util/getServiceInterface.ts +++ b/sdk/lib/util/getServiceInterface.ts @@ -90,6 +90,8 @@ export const addressHostToUrl = ( } else if (host.kind === "ip") { if (host.hostname.kind === "domain") { hostname = `${host.hostname.subdomain ? `${host.hostname.subdomain}.` : ""}${host.hostname.domain}` + } else if (host.hostname.kind === "ipv6") { + hostname = `[${host.hostname.value}]` } else { hostname = host.hostname.value }