From 065c437d31085e90e98e1b863c1d730956a4e803 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 29 Sep 2006 14:59:26 +0000 Subject: [PATCH] fixed bug in client_test where dht_state wasnt used --- examples/client_test.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index af0765252..d29aeee81 100755 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -570,14 +570,15 @@ int main(int ac, char* av[]) boost::filesystem::ifstream dht_state_file(".dht_state" , std::ios_base::binary); dht_state_file.unsetf(std::ios_base::skipws); + entry dht_state; try { - entry dht_state = bdecode( + dht_state = bdecode( std::istream_iterator(dht_state_file) , std::istream_iterator()); } catch (std::exception&) {} - ses.start_dht(); + ses.start_dht(dht_state); ses.add_dht_router(std::make_pair(std::string("router.bittorrent.com") , 6881)); ses.add_dht_router(std::make_pair(std::string("router.utorrent.com")