I missed that (didn't do the right grep, obviously) <smack />
I guess the next thing to do is check the configuration report, as that will
show how the compile was actually done:
#ifdef HAVE_LIBWRAP
printFeatureConfigInfo("TCP Wrappers", "Present");
#else
printFeatureConfigInfo("TCP Wrappers", "Absent");
#endif
ntop.h: 414 # define DAEMONNAME "ntop" /* for
/etc/hosts.allow, /etc/hosts.deny */
Also, check the configuration report after ./configure and make sure -lwrap
is in the library lists...
-----Burton
-----Original Message-----
From: Anthony David [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 6:42 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [Ntop] (no subject)
<snip>
The relevant part is in webInterface.c
...
#ifdef HAVE_LIBWRAP
{
struct request_info req;
request_init(&req, RQ_DAEMON, DAEMONNAME, RQ_FILE, newSock, NULL);
fromhost(&req);
if (!hosts_access(&req)) {
closelog(); /* just in case */
openlog(DAEMONNAME,LOG_PID,SYSLOG_FACILITY);
syslog(deny_severity, "refused connect from %s", eval_client(&req));
}
else
handleHTTPrequest(from.sin_addr);
}
#else
handleHTTPrequest(from.sin_addr);
#endif /* HAVE_LIBWRAP */
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop