diff --git a/.changeset/shiny-birds-ring.md b/.changeset/shiny-birds-ring.md deleted file mode 100644 index a7f39561ff37..000000000000 --- a/.changeset/shiny-birds-ring.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@sveltejs/kit': patch ---- - -[breaking] Supplying an empty `--host` option to `preview` exposes the server to both ipv4 and ipv6 networks diff --git a/packages/kit/src/core/preview/index.js b/packages/kit/src/core/preview/index.js index eb50ab31be69..dc53138c0bef 100644 --- a/packages/kit/src/core/preview/index.js +++ b/packages/kit/src/core/preview/index.js @@ -161,7 +161,7 @@ export async function preview({ port, host, config, https: use_https = false }) }); return new Promise((fulfil) => { - http_server.listen(port, host, () => { + http_server.listen(port, host || '0.0.0.0', () => { fulfil(http_server); }); });