From bcc3baa237f591a4769f290a2d4e2690f57a971b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 25 Oct 2005 15:19:58 +0000 Subject: [PATCH] Use virt_db filter in ex_filter_frontend_net program --- src/ex_filter_frontend_net.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ex_filter_frontend_net.cpp b/src/ex_filter_frontend_net.cpp index 58d4a53..fd5d7d7 100644 --- a/src/ex_filter_frontend_net.cpp +++ b/src/ex_filter_frontend_net.cpp @@ -1,4 +1,4 @@ -/* $Id: ex_filter_frontend_net.cpp,v 1.8 2005-10-16 16:05:44 adam Exp $ +/* $Id: ex_filter_frontend_net.cpp,v 1.9 2005-10-25 15:19:58 adam Exp $ Copyright (c) 2005, Index Data. %LICENSE% @@ -15,6 +15,7 @@ namespace po = boost::program_options; #include "filter_frontend_net.hpp" #include "filter_z3950_client.hpp" +#include "filter_virt_db.hpp" #include "filter_log.hpp" #include "router.hpp" @@ -99,6 +100,12 @@ int main(int argc, char **argv) yp2::filter::Log filter_log; router.rule(filter_log); + // put Virt db filter in router + yp2::filter::Virt_db filter_virt_db; + filter_virt_db.add_map_db2vhost("Default", "indexdata.dk/gils"); + + router.rule(filter_virt_db); + // put HTTP backend filter in router HTTPFilter filter_init; router.rule(filter_init); -- 1.7.10.4