* More rak::socket_address cleanup, made listening port seperate from

local address and use port 0 when listening port is closed.

* Added "port_open" option which allows the user to not open any
listening port.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@644 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-02-24 21:32:36 +00:00
parent e3571f249c
commit a6a0c25fbc
3 changed files with 5 additions and 8 deletions
+1
View File
@@ -159,6 +159,7 @@ initialize_option_handler(Control* c) {
// Cleaned up.
variables->insert("check_hash", new utils::VariableAny("yes"));
variables->insert("use_udp_trackers", new utils::VariableAny("yes"));
variables->insert("port_open", new utils::VariableAny("yes"));
variables->insert("port_random", new utils::VariableAny("yes"));
variables->insert("session", new utils::VariableSlotString<>(NULL, rak::mem_fn(&control->core()->download_store(), &core::DownloadStore::set_path)));