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
FilterFrontendNet allows listening on multiple ports.
[metaproxy-moved-to-github.git]
/
src
/
test_filter_frontend_net.cpp
diff --git
a/src/test_filter_frontend_net.cpp
b/src/test_filter_frontend_net.cpp
index
1c9b8c2
..
f6b9c5d
100644
(file)
--- a/
src/test_filter_frontend_net.cpp
+++ b/
src/test_filter_frontend_net.cpp
@@
-102,7
+102,10
@@
BOOST_AUTO_TEST_CASE( test_filter_frontend_net_3 )
// put in frontend first
yp2::FilterFrontendNet filter_front;
// put in frontend first
yp2::FilterFrontendNet filter_front;
- filter_front.listen_address() = "unix:socket";
+
+ std::vector <std::string> ports;
+ ports.insert(ports.begin(), "unix:socket");
+ filter_front.ports() = ports;
filter_front.listen_duration() = 1; // listen a short time only
router.rule(filter_front);
filter_front.listen_duration() = 1; // listen a short time only
router.rule(filter_front);