- for (fpp=chp->proxies;fpp;fpp=fpp->next)
- fprintf(fp, "%lu %lu %u %i %u\n",chp->IP,chp->lastscan,chp->glineid,fpp->type,fpp->port);
- } else {
- if (chp->lastscan < (now-cleanscaninterval)) {
- /* Needs rescan anyway, so delete it */
- delcachehost(chp);
- continue;
+ for (fpp=chp->proxies;fpp;fpp=fpp->next)
+ fprintf(fp, "%s %lu %u %i %u %lu\n",IPtostr(node->prefix->sin),chp->lastscan,chp->glineid,fpp->type,fpp->port,chp->lastgline);
+ } else {
+ if (chp->lastscan < (now-cleanscaninterval)) {
+ /* Needs rescan anyway, so delete it */
+ derefnode(iptree,node);
+ delcachehost(chp);
+ node->exts[ps_cache_ext] = NULL;
+ } else
+ fprintf(fp,"%s %lu\n",IPtostr(node->prefix->sin),chp->lastscan);