-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lume -s
does not listen on ipv6
#503
Comments
I'm not familiarized with ipv6 so I have to dig into Deno server options. |
The server is created here (https://github.com/lumeland/lume/blob/ecdafbf6c28cae91f1d6a573d888051ec1fb2407/core/server.ts#L81C1-L92C4) The documentation does not mention anything about running dualstack (https://deno.land/[email protected]?s=Deno.ListenOptions) Having it listen on only IPv6 is as simple as diff --git a/core/server.ts b/core/server.ts
index d52936ef..d617a220 100644
--- a/core/server.ts
+++ b/core/server.ts
@@ -83,6 +83,7 @@ export default class Server {
this.#server = new HttpServer({
port: port,
+ hostname: "[::1]",
handler: (request, connInfo) => this.handle(request, connInfo),
});
That is all i could figure out by now. I've never worked with deno before, so i wouldnt even know where to look further. |
Also, i now know why i says
|
We are planning to switch to |
Version
v1.19.3
Platform
Linux (Linux thearch 6.5.9-arch2-1 #1 SMP PREEMPT_DYNAMIC Thu, 26 Oct 2023 00:52:20 +0000 x86_64 GNU/Linux)
What steps will reproduce the bug?
Start lume with
deno task serve
Try to connect to http://localhost:3000 using ipv6
(e.g.
curl -6 localhost:3000
)Run into timeout
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
Lume should either
http://127.0.0.1:3000/ (local)
instead ofhttp://localhost:3000/ (local)
What do you see instead?
I run into a timeout trying to connect to lume using ipv6
Additional information
No response
The text was updated successfully, but these errors were encountered: