|
Lines 248-254
Link Here
|
| 248 |
#endif /* HAVE_LOGIN_CAP */ |
248 |
#endif /* HAVE_LOGIN_CAP */ |
| 249 |
#ifdef LOGIN_ACCESS |
249 |
#ifdef LOGIN_ACCESS |
| 250 |
if (authctxt->pw != NULL && |
250 |
if (authctxt->pw != NULL && |
| 251 |
!login_access(authctxt->pw->pw_name, from_host)) { |
251 |
!login_access(authctxt->pw->pw_name, from_host) && |
|
|
252 |
!login_access(authctxt->pw->pw_name, from_ip)) { |
| 252 |
log("Denied connection for %.200s from %.200s [%.200s].", |
253 |
log("Denied connection for %.200s from %.200s [%.200s].", |
| 253 |
authctxt->pw->pw_name, from_host, from_ip); |
254 |
authctxt->pw->pw_name, from_host, from_ip); |
| 254 |
packet_disconnect("Sorry, you are not allowed to connect."); |
255 |
packet_disconnect("Sorry, you are not allowed to connect."); |