258 |
|
{ |
259 |
|
conf = find_address_conf(client_p->host, client_p->username, |
260 |
|
&client_p->ip, |
261 |
< |
client_p->connection->aftype, |
261 |
> |
client_p->ip.ss.ss_family, |
262 |
|
client_p->connection->password); |
263 |
|
} |
264 |
|
else |
268 |
|
strlcpy(non_ident + 1, client_p->username, sizeof(non_ident) - 1); |
269 |
|
conf = find_address_conf(client_p->host, non_ident, |
270 |
|
&client_p->ip, |
271 |
< |
client_p->connection->aftype, |
271 |
> |
client_p->ip.ss.ss_family, |
272 |
|
client_p->connection->password); |
273 |
|
} |
274 |
|
|
523 |
|
return conf; |
524 |
|
break; |
525 |
|
case HM_IPV4: |
526 |
< |
if (who->connection->aftype == AF_INET) |
526 |
> |
if (who->ip.ss.ss_family == AF_INET) |
527 |
|
if (match_ipv4(&who->ip, &conf->addr, conf->bits)) |
528 |
|
if (!conf->class->max_total || conf->class->ref_count < conf->class->max_total) |
529 |
|
return conf; |
530 |
|
break; |
531 |
|
case HM_IPV6: |
532 |
< |
if (who->connection->aftype == AF_INET6) |
532 |
> |
if (who->ip.ss.ss_family == AF_INET6) |
533 |
|
if (match_ipv6(&who->ip, &conf->addr, conf->bits)) |
534 |
|
if (!conf->class->max_total || conf->class->ref_count < conf->class->max_total) |
535 |
|
return conf; |