projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Filter virt_db returns first unsvailable database as addinfo
[metaproxy-moved-to-github.git]
/
src
/
ex_filter_frontend_net.cpp
diff --git
a/src/ex_filter_frontend_net.cpp
b/src/ex_filter_frontend_net.cpp
index
2abf158
..
15e6b55
100644
(file)
--- 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.22 2006-01-11 11:51:49 adam Exp $
+/* $Id: ex_filter_frontend_net.cpp,v 1.25 2006-01-16 15:51:56 adam Exp $
Copyright (c) 2005, Index Data.
%LICENSE%
Copyright (c) 2005, Index Data.
%LICENSE%
@@
-104,12
+104,12
@@
int main(int argc, char **argv)
// put Virt db filter in router
yp2::filter::Virt_db filter_virt_db;
// put Virt db filter in router
yp2::filter::Virt_db filter_virt_db;
- filter_virt_db.add_map_db2vhost("gils", "indexdata.dk/gils",
+ filter_virt_db.add_map_db2target("gils", "indexdata.dk/gils",
"");
"");
- filter_virt_db.add_map_db2vhost("Default", "localhost:9999/Default",
+ filter_virt_db.add_map_db2target("Default", "localhost:9999/Default",
"");
"");
- filter_virt_db.add_map_db2vhost("2", "localhost:9999/2", "");
- // router.append(filter_virt_db);
+ filter_virt_db.add_map_db2target("2", "localhost:9999/Slow", "");
+ router.append(filter_virt_db);
yp2::filter::SessionShared filter_session_shared;
//router.append(filter_session_shared);
yp2::filter::SessionShared filter_session_shared;
//router.append(filter_session_shared);