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

View File

@@ -568,6 +568,9 @@ int main(int ac, char* av[])
session ses;
#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"
, std::ios_base::binary);
dht_state_file.unsetf(std::ios_base::skipws);