Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/0.16.16/src/libtorrent-rasterbar-0.16.16/src/session_impl.cpp b/0.16.16/src/libtorrent-rasterbar-0.16.16/src/session_impl.cpp
- index 6ec84ce..79cc500 100644
- --- a/0.16.16/src/libtorrent-rasterbar-0.16.16/src/session_impl.cpp
- +++ b/0.16.16/src/libtorrent-rasterbar-0.16.16/src/session_impl.cpp
- @@ -2052,10 +2052,7 @@ namespace aux {
- if (m_settings.peer_tos != s.peer_tos)
- {
- error_code ec;
- - if (m_udp_socket.local_endpoint(ec).address().is_v6())
- - m_udp_socket.set_option(traffic_class(s.peer_tos), ec);
- - else
- - m_udp_socket.set_option(type_of_service(s.peer_tos), ec);
- + m_udp_socket.set_option(type_of_service(s.peer_tos), ec);
- #if defined TORRENT_VERBOSE_LOGGING
- (*m_logger) << ">>> SET_TOS[ udp_socket tos: " << s.peer_tos << " e: " << ec.message() << " ]\n";
- #endif
- @@ -2411,11 +2408,7 @@ retry:
- maybe_update_udp_mapping(1, m_listen_interface.port(), m_listen_interface.port());
- }
- -
- - if (m_udp_socket.local_endpoint(ec).address().is_v6())
- - m_udp_socket.set_option(traffic_class(m_settings.peer_tos), ec);
- - else
- - m_udp_socket.set_option(type_of_service(m_settings.peer_tos), ec);
- + m_udp_socket.set_option(type_of_service(m_settings.peer_tos), ec);
- #if defined TORRENT_VERBOSE_LOGGING
- (*m_logger) << ">>> SET_TOS[ udp_socket tos: " << m_settings.peer_tos << " e: " << ec.message() << " ]\n";
- #endif
- @@ -5704,16 +5700,12 @@ namespace libtorrent
- peer_log(">>> SET_TOS[ tos: %d e: %s ]", m_ses.settings().peer_tos, ec.message().c_str());
- #endif
- }
- - else if (m_remote.address().is_v6())
- - {
- - m_socket->set_option(traffic_class(m_ses.settings().peer_tos), ec);
- - }
- on_connected();
- setup_send();
- setup_receive();
- }
- -
- +
- // --------------------------
- // SEND DATA
- // --------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement