Changeset 443
- Timestamp:
- 07/12/2005 06:25:18 PM (3 years ago)
- Files:
-
- 1 modified
-
branches/lighttpd-1.3.x/src/mod_trigger_b4_dl.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/lighttpd-1.3.x/src/mod_trigger_b4_dl.c
r436 r443 351 351 352 352 remote_ip = ds->value->ptr; 353 354 /* memcache can't handle spaces */ 353 355 } else { 354 356 remote_ip = inet_ntop_cache_get_ip(srv, &(con->dst_addr)); … … 385 387 buffer_copy_string_buffer(p->tmp_buf, p->conf.mc_namespace); 386 388 buffer_append_string(p->tmp_buf, remote_ip); 389 390 for (i = 0; i < p->tmp_buf->used - 1; i++) { 391 if (p->tmp_buf->ptr[i] == ' ') p->tmp_buf->ptr[i] = '-'; 392 } 387 393 388 394 if (0 != mc_set(p->conf.mc, … … 441 447 "delete failed"); 442 448 } 443 } else if (p->conf.mc) {444 if (0 != mc_delete(p->conf.mc,445 (char *)remote_ip, strlen(remote_ip),446 0)) {447 log_error_write(srv, __FILE__, __LINE__, "s",448 "insert failed");449 }450 449 } 451 450 … … 469 468 buffer_copy_string_buffer(p->tmp_buf, p->conf.mc_namespace); 470 469 buffer_append_string(p->tmp_buf, remote_ip); 470 471 for (i = 0; i < p->tmp_buf->used - 1; i++) { 472 if (p->tmp_buf->ptr[i] == ' ') p->tmp_buf->ptr[i] = '-'; 473 } 471 474 472 475 /**

