the dht uses the specified port now
This commit is contained in:
parent
7b3ef9620d
commit
c66165614e
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue