]> git.feebdaed.xyz Git - 0xmirror/civetweb.git/commit
Tolerate socket creation error if port is optional
authorDL6ER <dl6er@dl6er.de>
Mon, 10 Mar 2025 18:11:43 +0000 (19:11 +0100)
committerDL6ER <dl6er@dl6er.de>
Mon, 10 Mar 2025 18:11:43 +0000 (19:11 +0100)
commit267a58096be0bb547e158949cef321942111604f
tree52dbf48af3d3498da1b683b0fb438535bfc17c7a
parentaba43aadbddf83cf20282be02f70e329d6b51081
Tolerate socket creation error if port is optional

When users specify `[::]:80o` as port but the system has IPv6 disabled globally, e.g., with
```
GRUB_CMDLINE_LINUX="ipv6.disable=1"
```
then CivetWeb refuses to start even though it should skip the port if it cannot bind to it. However, when the port is specified as being optional, there is no point in treating non-availability of the protocol differently than the port already being taken. In this case, this port should simply be skipped.

Signed-off-by: DL6ER <dl6er@dl6er.de>
src/civetweb.c