the dht uses the specified port now

This commit is contained in:
Arvid Norberg 2006-10-11 22:05:10 +00:00
parent 7b3ef9620d
commit c66165614e
1 changed files with 3 additions and 0 deletions

View File

@ -568,6 +568,9 @@ int main(int ac, char* av[])
session ses; session ses;
#ifndef TORRENT_DISABLE_DHT #ifndef TORRENT_DISABLE_DHT
dht_settings s;
s.service_port = listen_port;
ses.set_dht_settings(s);
boost::filesystem::ifstream dht_state_file(".dht_state" boost::filesystem::ifstream dht_state_file(".dht_state"
, std::ios_base::binary); , std::ios_base::binary);
dht_state_file.unsetf(std::ios_base::skipws); dht_state_file.unsetf(std::ios_base::skipws);