bosia 0.6.14 → 0.6.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/core/dev.ts +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bosia",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A fast, batteries-included fullstack framework — SSR · Svelte 5 Runes · Bun · ElysiaJS. File-based routing inspired by SvelteKit. No Node.js, no Vite, no adapters.",
|
|
6
6
|
"keywords": [
|
package/src/core/dev.ts
CHANGED
|
@@ -241,7 +241,13 @@ const devServer = Bun.serve({
|
|
|
241
241
|
// rather than the inner-app's host (localhost:APP_PORT).
|
|
242
242
|
const reqUrl = new URL(req.url);
|
|
243
243
|
const target = new URL(req.url);
|
|
244
|
-
|
|
244
|
+
// 127.0.0.1 instead of "localhost" — under systemd `IPAddressAllow=localhost`
|
|
245
|
+
// the eBPF cgroup filter only permits packets to/from 127.0.0.0/8 + ::1.
|
|
246
|
+
// "localhost" resolves to both ::1 and 127.0.0.1; bun's fetch() picks IPv6
|
|
247
|
+
// first, but the inner Bun.serve() listens IPv4-only, so the v6 connect
|
|
248
|
+
// fails fast and (under bun 1.3) doesn't fall back to v4. Pinning to v4
|
|
249
|
+
// avoids the failure path entirely.
|
|
250
|
+
target.hostname = "127.0.0.1";
|
|
245
251
|
target.port = String(APP_PORT);
|
|
246
252
|
|
|
247
253
|
const forwardedHeaders = new Headers(req.headers);
|