mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 07:07:04 +02:00
* recent change for pause/play mode broke compilation due to sockaddr_storage.
This commit is contained in:
parent
22739efb4a
commit
cb2e562ad7
11
haproxy.c
11
haproxy.c
@ -5822,10 +5822,17 @@ static void listen_proxies(void) {
|
|||||||
else
|
else
|
||||||
p->state = PR_STIDLE;
|
p->state = PR_STIDLE;
|
||||||
} else {
|
} else {
|
||||||
|
int port;
|
||||||
|
|
||||||
|
if (l->addr.ss_family == AF_INET6)
|
||||||
|
port = ntohs(((struct sockaddr_in6 *)(&l->addr))->sin6_port);
|
||||||
|
else
|
||||||
|
port = ntohs(((struct sockaddr_in *)(&l->addr))->sin_port);
|
||||||
|
|
||||||
Warning("Port %d busy while trying to enable proxy %s.\n",
|
Warning("Port %d busy while trying to enable proxy %s.\n",
|
||||||
ntohs(l->addr.sin_port), p->id);
|
port, p->id);
|
||||||
send_log(p, LOG_WARNING, "Port %d busy while trying to enable proxy %s.\n",
|
send_log(p, LOG_WARNING, "Port %d busy while trying to enable proxy %s.\n",
|
||||||
ntohs(l->addr.sin_port), p->id);
|
port, p->id);
|
||||||
/* Another port might have been enabled. Let's stop everything. */
|
/* Another port might have been enabled. Let's stop everything. */
|
||||||
pause_proxy(p);
|
pause_proxy(p);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user