mirror of
https://github.com/monero-project/monero.git
synced 2026-07-30 23:50:24 -07:00
epee: skip IPv4 TOS option for non-IPv4 peers
This commit is contained in:
@@ -960,14 +960,16 @@ namespace net_utils
|
|||||||
|
|
||||||
ec_t ec;
|
ec_t ec;
|
||||||
#if !defined(_WIN32) || !defined(__i686)
|
#if !defined(_WIN32) || !defined(__i686)
|
||||||
connection_basic::socket_.next_layer().set_option(
|
if (real_remote->get_type_id() == ipv4_network_address::get_type_id()) {
|
||||||
boost::asio::detail::socket_option::integer<IPPROTO_IP, IP_TOS>{
|
connection_basic::socket_.next_layer().set_option(
|
||||||
connection_basic::get_tos_flag()
|
boost::asio::detail::socket_option::integer<IPPROTO_IP, IP_TOS>{
|
||||||
},
|
connection_basic::get_tos_flag()
|
||||||
ec
|
},
|
||||||
);
|
ec
|
||||||
if (ec.value())
|
);
|
||||||
return false;
|
if (ec.value())
|
||||||
|
return false;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
connection_basic::socket_.next_layer().set_option(
|
connection_basic::socket_.next_layer().set_option(
|
||||||
boost::asio::ip::tcp::no_delay{false},
|
boost::asio::ip::tcp::no_delay{false},
|
||||||
|
|||||||
Reference in New Issue
Block a user