Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http: Fail initialization when any bind fails
Currently the HTTP server initialization (`HTTPBindAddresses`) fails only when *all* bindings fail. So if multiple binds are specified (`127.0.0.1` and `::1` by defeault) and one succeeds and the other fails, the latter is essentially ignored. This commit changes the error behavior to fail *if not all* binds could be performed, which I think is more in line with how software normally handles this and what users expect.
- Loading branch information
Showing
1 changed file
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters