mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 23:55:57 -05:00
Bind IPv4 server first, to avoid v4compat
This commit is contained in:
parent
e9b8fd8bd7
commit
0cb62fdabf
@ -1280,10 +1280,6 @@ httpd_init(void)
|
||||
* as IPv6 might not be supported on the system.
|
||||
* We still warn about the failure, in case there's another issue.
|
||||
*/
|
||||
ret = evhttp_bind_socket(evhttpd, "::", port);
|
||||
if (ret < 0)
|
||||
DPRINTF(E_WARN, L_HTTPD, "Could not bind IN6ADDR_ANY:%d (that's OK)\n", port);
|
||||
|
||||
ret = evhttp_bind_socket(evhttpd, "0.0.0.0", port);
|
||||
if (ret < 0)
|
||||
{
|
||||
@ -1292,6 +1288,10 @@ httpd_init(void)
|
||||
goto bind_fail;
|
||||
}
|
||||
|
||||
ret = evhttp_bind_socket(evhttpd, "::", port);
|
||||
if (ret < 0)
|
||||
DPRINTF(E_WARN, L_HTTPD, "Could not bind IN6ADDR_ANY:%d (that's OK)\n", port);
|
||||
|
||||
evhttp_set_gencb(evhttpd, httpd_gen_cb, NULL);
|
||||
|
||||
ret = pthread_create(&tid_httpd, NULL, httpd, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user