| 972 |
} |
} |
| 973 |
else |
else |
| 974 |
{ |
{ |
| 975 |
log_error("Rejected %s connection from %s:%d over limit per IP (%d)\n", |
log_error("Rejected %s connection from %s:%d over limit per IP (%d >= %d)\n", |
| 976 |
(SSH_v2 ? "SSH" : "telnet"), hostaddr_client, port_client, BBS_max_client_per_ip); |
(SSH_v2 ? "SSH" : "telnet"), hostaddr_client, port_client, j, BBS_max_client_per_ip); |
| 977 |
} |
} |
| 978 |
} |
} |
| 979 |
else |
else |
| 980 |
{ |
{ |
| 981 |
log_error("Rejected %s connection from %s:%d over limit (%d)\n", |
log_error("Rejected %s connection from %s:%d over limit (%d >= %d)\n", |
| 982 |
(SSH_v2 ? "SSH" : "telnet"), hostaddr_client, port_client, SYS_child_process_count - 1); |
(SSH_v2 ? "SSH" : "telnet"), hostaddr_client, port_client, SYS_child_process_count - 1, BBS_max_client); |
| 983 |
} |
} |
| 984 |
|
|
| 985 |
if (close(socket_client) == -1) |
if (close(socket_client) == -1) |