s_serv: connect using both IPv4 and IPv6 if unspecified
This commit is contained in:
parent
de2934965c
commit
4ce1cac4b9
1 changed files with 1 additions and 1 deletions
|
@ -1043,7 +1043,7 @@ serv_connect(struct server_conf *server_p, struct Client *by)
|
||||||
SET_SS_FAMILY(&sa_connect, AF_UNSPEC);
|
SET_SS_FAMILY(&sa_connect, AF_UNSPEC);
|
||||||
SET_SS_FAMILY(&sa_bind, AF_UNSPEC);
|
SET_SS_FAMILY(&sa_bind, AF_UNSPEC);
|
||||||
|
|
||||||
if(server_p->aftype != AF_UNSPEC
|
if(server_p->aftype == AF_UNSPEC
|
||||||
&& GET_SS_FAMILY(&server_p->connect4) == AF_INET
|
&& GET_SS_FAMILY(&server_p->connect4) == AF_INET
|
||||||
&& GET_SS_FAMILY(&server_p->connect6) == AF_INET6)
|
&& GET_SS_FAMILY(&server_p->connect6) == AF_INET6)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue