Describe the bug
After upgrading from v6.0.10 to v6.1.0, my code stopped working.
I found some differences
vite.config.ts
import { defineConfig } from 'vite'
export default defineConfig({
server: {
host: '192.168.0.152',
port: 4200,
https: {
cert: '192.168.0.152.crt',
key: '192.168.0.152.key',
},
},
});
v6.0.10 yarn dev

v6.1.0 yarn dev

In v6.1.0, there are two URLs. If I use yarn dev and visit https://192.168.0.152:4200/, it works fine. But if I run the command yarn dev --open, it shows an error.

Note: but if I run vite --open, it works.
Reproduction
https://github.com/keatkeat87/vite-issue-https-open
Steps to reproduce
git clone https://github.com/keatkeat87/vite-issue-https-open
yarn install
yarn dev --open
System Info
System:
OS: Windows 11 10.0.26100
CPU: (8) x64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
Memory: 17.28 GB / 31.76 GB
Binaries:
Node: 22.12.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - C:\Program Files\nodejs\yarn.CMD
npm: 10.9.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Chromium (131.0.2903.70)
Internet Explorer: 11.0.26100.1882
npmPackages:
vite: ^6.1.0 => 6.1.0
Used Package Manager
yarn
Logs
No response
Validations
Describe the bug
After upgrading from v6.0.10 to v6.1.0, my code stopped working.
I found some differences
vite.config.ts
v6.0.10 yarn dev

v6.1.0 yarn dev

In v6.1.0, there are two URLs. If I use yarn dev and visit https://192.168.0.152:4200/, it works fine. But if I run the command
yarn dev --open, it shows an error.Note: but if I run
vite --open, it works.Reproduction
https://github.com/keatkeat87/vite-issue-https-open
Steps to reproduce
git clone https://github.com/keatkeat87/vite-issue-https-openyarn installyarn dev --openSystem Info
System: OS: Windows 11 10.0.26100 CPU: (8) x64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz Memory: 17.28 GB / 31.76 GB Binaries: Node: 22.12.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.19 - C:\Program Files\nodejs\yarn.CMD npm: 10.9.0 - C:\Program Files\nodejs\npm.CMD Browsers: Edge: Chromium (131.0.2903.70) Internet Explorer: 11.0.26100.1882 npmPackages: vite: ^6.1.0 => 6.1.0Used Package Manager
yarn
Logs
No response
Validations