emikulic / darkhttpd

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

Can not listen to IPv6 address. #26

Closed fernvenue closed 1 year ago

fernvenue commented 1 year ago

Hi, I got darkhttpd: malformed --addr argument this error when I wanna make darkhttpd listen to an IPv6 address, I tried with or without [] and they don't work, so could you please tell me what should I do if I just wanna listen to an IPv6 address?

emikulic commented 1 year ago

You need to pass --ipv6

e.g.

$ ./darkhttpd . --addr ::1 --ipv6
listening on: http://[::1]:8080/

Sorry the interface isn't better.

fernvenue commented 1 year ago

Hi @emikulic, thanks for your reply, that works for me, thanks again! And now I'm gonna close this issue for now :)