h3rald / nimhttpd

A tiny static file web server written in Nim
https://h3rald.com/nimhttpd
MIT License
81 stars 12 forks source link

Dual-stack nimhttpd #14

Closed unquietwiki closed 1 year ago

unquietwiki commented 1 year ago

@h3rald , I hope you're doing well. It was bugging me that this app couldn't do dual-stack IPv4+IPv6, so I figured out how to make that work. Now it will default open two threads: one for each address family and the -6 flag is now used to set the listening IPv6 address. Setting -a:"0.0.0.0" and -6:"::" correctly resolves either protocol & their addresses for me.

h3rald commented 1 year ago

Wow this is really good @unquietwiki! Another excellent contribution, thanks!

unquietwiki commented 1 year ago

@h3rald Glad to be of service. Thank you!