emikulic / darkhttpd

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

display actual port again #62

Closed g-rden closed 8 months ago

g-rden commented 8 months ago

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.

hhartzer commented 8 months ago

Nice! This looks like it should be good.

g-rden commented 8 months ago

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.

emikulic commented 8 months ago

Nice, thanks!