Use hostname instead of host

This commit is contained in:
Eric Allam
2025-06-18 16:12:19 +01:00
parent 5b49b420cb
commit 58d56f8381
+2 -2
View File
@@ -3,8 +3,8 @@ import { isMacOS, isWindows } from "std-env";
export function normalizeDockerHostUrl(url: string) {
const $url = new URL(url);
if ($url.host === "localhost") {
$url.host = getDockerHostDomain();
if ($url.hostname === "localhost") {
$url.hostname = getDockerHostDomain();
}
return $url.toString();