mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed bug with rem_host in "hosts allow"
SVN revision: 1850
This commit is contained in:
parent
17a184ab11
commit
ee9df7a510
@ -25233,7 +25233,7 @@ void server_loop(void)
|
|||||||
/*---- check "hosts allow" ----*/
|
/*---- check "hosts allow" ----*/
|
||||||
|
|
||||||
if (getcfg(logbook, "Hosts allow", list, sizeof(list))) {
|
if (getcfg(logbook, "Hosts allow", list, sizeof(list))) {
|
||||||
strcpy(rem_host_ip, (char *) inet_ntoa(acc_addr.sin_addr));
|
strcpy(rem_host_ip, (char *) inet_ntoa(rem_addr));
|
||||||
n = strbreak(list, host_list, MAX_N_LIST, ",", FALSE);
|
n = strbreak(list, host_list, MAX_N_LIST, ",", FALSE);
|
||||||
/* check if current connection matches anyone on the list */
|
/* check if current connection matches anyone on the list */
|
||||||
for (i = 0; i < n; i++) {
|
for (i = 0; i < n; i++) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user