Listen on :: (dual-stack) instead of 0.0.0.0

Toes proxy fetches via localhost which may resolve to ::1 on Linux.
Listening on :: accepts both IPv4 and IPv6 connections.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Corey Johnson 2026-03-10 17:35:11 -07:00
parent 4e2e0c9c5f
commit be6719733b

View File

@ -70,7 +70,7 @@ const websocket = {
const server = Bun.serve({ const server = Bun.serve({
port: PORT, port: PORT,
hostname: '0.0.0.0', hostname: '::',
idleTimeout: 255, idleTimeout: 255,
fetch(req, server) { fetch(req, server) {