Environment
- OS: macOS (Darwin 24.6.0)
- listhen: 1.9.1 (via Nuxt 3.21.2)
Reproduction
- Have a machine with a link-local IPv4 network interface (e.g. macOS Thunderbolt Bridge, or any unconfigured Ethernet adapter)
- Run a dev server with
host: '0.0.0.0' (e.g. Nuxt with devServer: { host: '0.0.0.0' })
- The QR code and Network URL show
http://169.254.x.x:3000/ instead of the actual LAN address (e.g. http://192.168.x.x:3000/)
The QR code points to the link-local address, which is unreachable from other devices on the network.
Description
getNetworkInterfaces() in src/_utils.ts filters out IPv6 link-local addresses (fe80::) but does not filter their IPv4 equivalent (169.254.0.0/16). Since the results are sorted alphabetically, 169.254.x.x sorts before 192.168.x.x and gets picked as the first network URL / QR code target.
Environment
Reproduction
host: '0.0.0.0'(e.g. Nuxt withdevServer: { host: '0.0.0.0' })http://169.254.x.x:3000/instead of the actual LAN address (e.g.http://192.168.x.x:3000/)The QR code points to the link-local address, which is unreachable from other devices on the network.
Description
getNetworkInterfaces()insrc/_utils.tsfilters out IPv6 link-local addresses (fe80::) but does not filter their IPv4 equivalent (169.254.0.0/16). Since the results are sorted alphabetically,169.254.x.xsorts before192.168.x.xand gets picked as the first network URL / QR code target.