Removed the PLUGIN_SUPPORT code, since plugin support is now mandatory.

This commit is contained in:
Jan Vidar Krey
2011-12-21 10:48:37 +01:00
parent f31fc65e1d
commit f34f0328a3
8 changed files with 1 additions and 109 deletions

View File

@@ -176,9 +176,7 @@ void net_on_accept(struct net_connection* con, int event, void *arg)
struct hub_probe* probe = 0;
struct ip_addr_encap ipaddr;
int server_fd = net_con_get_sd(con);
#ifdef PLUGIN_SUPPORT
plugin_st status;
#endif
for (;;)
{
@@ -200,7 +198,6 @@ void net_on_accept(struct net_connection* con, int event, void *arg)
}
}
#ifdef PLUGIN_SUPPORT
status = plugin_check_ip_early(hub, &ipaddr);
if (status == st_deny)
{
@@ -210,7 +207,6 @@ void net_on_accept(struct net_connection* con, int event, void *arg)
}
plugin_log_connection_accepted(hub, &ipaddr);
#endif
probe = probe_create(hub, fd, &ipaddr);
if (!probe)