Skip to content

Commit 58d56f8

Browse files
committed
Use hostname instead of host
1 parent 5b49b42 commit 58d56f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/supervisor/src/util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { isMacOS, isWindows } from "std-env";
33
export function normalizeDockerHostUrl(url: string) {
44
const $url = new URL(url);
55

6-
if ($url.host === "localhost") {
7-
$url.host = getDockerHostDomain();
6+
if ($url.hostname === "localhost") {
7+
$url.hostname = getDockerHostDomain();
88
}
99

1010
return $url.toString();

0 commit comments

Comments
 (0)