fix documentation generation of listen_interfaces

This commit is contained in:
arvidn 2016-02-22 20:14:53 -05:00
parent 0e805d7d06
commit ca75055c4b
1 changed files with 5 additions and 9 deletions

View File

@ -125,12 +125,6 @@ namespace libtorrent
using aux::session_impl;
#if TORRENT_USE_IPV6
#define DEFAULT_LISTEN_INTERFACE "0.0.0.0:6881,[::]:6881"
#else
#define DEFAULT_LISTEN_INTERFACE "0.0.0.0:6881"
#endif
str_setting_entry_t str_settings[settings_pack::num_string_settings] =
{
SET(user_agent, "libtorrent/" LIBTORRENT_VERSION, &session_impl::update_user_agent),
@ -138,7 +132,11 @@ namespace libtorrent
SET(mmap_cache, 0, 0),
SET(handshake_client_version, 0, 0),
SET_NOPREV(outgoing_interfaces, "", &session_impl::update_outgoing_interfaces),
SET_NOPREV(listen_interfaces, DEFAULT_LISTEN_INTERFACE, &session_impl::update_listen_interfaces),
#if !TORRENT_USE_IPV6
SET_NOPREV(listen_interfaces, "0.0.0.0:6881", &session_impl::update_listen_interfaces),
#else
SET_NOPREV(listen_interfaces, "0.0.0.0:6881,[::]:6881", &session_impl::update_listen_interfaces),
#endif
SET_NOPREV(proxy_hostname, "", &session_impl::update_proxy),
SET_NOPREV(proxy_username, "", &session_impl::update_proxy),
SET_NOPREV(proxy_password, "", &session_impl::update_proxy),
@ -146,8 +144,6 @@ namespace libtorrent
SET_NOPREV(peer_fingerprint, "-LT1100-", &session_impl::update_peer_fingerprint)
};
#undef DEFAULT_LISTEN_INTERFACE
bool_setting_entry_t bool_settings[settings_pack::num_bool_settings] =
{
SET(allow_multiple_connections_per_ip, false, 0),