Closed g-rden closed 8 months ago
Nice! This looks like it should be good.
You have no idea how often I think that, but some time later I think about it again or see the code again and notice a blatant mistake. It's not unrealistic that I miss other blatent mistakes.
That aside, I tested this code now and it checks out.
Nice, thanks!
Print the initialized port instead of bindport variable. This is important when using
--port 0
for a random port.I saw this commit https://github.com/emikulic/darkhttpd/commit/bcadc424a4ff240ef1dd09334ec73b47c6784416 and noticed that the code regressed.