emikulic / darkhttpd

When you need a web server in a hurry.
https://unix4lyfe.org/darkhttpd/
ISC License
1.03k stars 83 forks source link

Listen to IPv4 and IPv6 at the same time when --ipv6 is passed #42

Closed hhartzer closed 7 months ago

hhartzer commented 7 months ago

This could have already been the default behavior on your OS, but now it will be consistently utilized. Prior to this, to support IPv4 and IPv6 you would have to run two servers or set the relevant sysctl.

Also fixes incorrect inet_pton() usage.

Closes: #37

hhartzer commented 7 months ago

I tested this with Debian 12 and FreeBSD 14. Seems to work on both.

If this looks good to you and you decide to merge, would you mind making a new release?

emikulic commented 7 months ago

Nice, thanks! I'll do the release.

emikulic commented 7 months ago

Done: https://github.com/emikulic/darkhttpd/releases/tag/v1.16