Skip to content

Commit 9e3f844

Browse files
committed
fix(utils): dedupe hostnames returned by extractHostnamesFromCerts
1 parent ff72d5d commit 9e3f844

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

packages/vite/src/node/__tests__/utils.spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -958,9 +958,6 @@ X2JN
958958
'localhost',
959959
'foo.localhost',
960960
'vite.vite.localhost',
961-
'localhost',
962-
'foo.localhost',
963-
'vite.vite.localhost',
964961
])
965962
})
966963
})

packages/vite/src/node/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ export function extractHostnamesFromCerts(
10171017
: [],
10181018
)
10191019

1020-
return hostnames
1020+
return unique(hostnames)
10211021
}
10221022

10231023
export function resolveServerUrls(

0 commit comments

Comments
 (0)