We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
From oven-sh/bun#5315
examples/http_server.c
uSockets/examples/http_server.c
Line 123 in ac4e90e
change to bind localhost:3000
localhost:3000
struct us_listen_socket_t *listen_socket = us_socket_context_listen(SSL, http_context, "localhost", 3000, 0, sizeof(struct http_socket));
debian:sid-slim
http_server
root@5b4095ebc3eb:/tmp/uSockets# ./http_server Failed to listen! root@5b4095ebc3eb:/tmp/uSockets# cat /etc/hosts 127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 172.17.0.2 5b4095ebc3eb root@5b4095ebc3eb:/tmp/uSockets# vim /etc/hosts # Remove `::1 localhost ip6-localhost ip6-loopback` root@5b4095ebc3eb:/tmp/uSockets# ./http_server # works now Listening on port 3000... ^C
The server fails to bind, but if you remove ::1 from /etc/hosts, it starts successfully. It binds 127.0.0.1 now.
::1
/etc/hosts
127.0.0.1
Regarding why there is still ::1 record present in the container even though IPv6 is not configured, please see moby/moby#35954
The text was updated successfully, but these errors were encountered:
No branches or pull requests
From oven-sh/bun#5315
Reproduce
examples/http_server.c
uSockets/examples/http_server.c
Line 123 in ac4e90e
change to bind
localhost:3000
debian:sid-slim
image and then run thehttp_server
. (docker has not been configured for IPv6 stack)The server fails to bind, but if you remove
::1
from/etc/hosts
, it starts successfully. It binds127.0.0.1
now.Regarding why there is still
::1
record present in the container even though IPv6 is not configured, please see moby/moby#35954The text was updated successfully, but these errors were encountered: