From ea2347734bcc63aae1f90056c71f1042399a6ab1 Mon Sep 17 00:00:00 2001 From: Jari Sundell Date: Tue, 23 Sep 2025 10:56:51 +0200 Subject: [PATCH] Added network.block.outgoing. --- src/command_network.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/command_network.cc b/src/command_network.cc index 19b32eef..f5e148c7 100644 --- a/src/command_network.cc +++ b/src/command_network.cc @@ -246,6 +246,8 @@ initialize_command_network() { CMD2_ANY_VALUE_V ("network.block.ipv6.set", std::bind(&torrent::net::NetworkConfig::set_block_ipv6, network_config, std::placeholders::_2)); CMD2_ANY ("network.block.ipv4in6", std::bind(&torrent::net::NetworkConfig::is_block_ipv4in6, network_config)); CMD2_ANY_VALUE_V ("network.block.ipv4in6.set", std::bind(&torrent::net::NetworkConfig::set_block_ipv4in6, network_config, std::placeholders::_2)); + CMD2_ANY ("network.block.outgoing", std::bind(&torrent::net::NetworkConfig::is_block_outgoing, network_config)); + CMD2_ANY_VALUE_V ("network.block.outgoing.set", std::bind(&torrent::net::NetworkConfig::set_block_outgoing, network_config, std::placeholders::_2)); CMD2_ANY ("network.prefer.ipv6", std::bind(&torrent::net::NetworkConfig::is_prefer_ipv6, network_config)); CMD2_ANY_VALUE_V ("network.prefer.ipv6.set", std::bind(&torrent::net::NetworkConfig::set_prefer_ipv6, network_config, std::placeholders::_2)); }