From f1a4c13c41e167a1556650e7d41d5a74332b3658 Mon Sep 17 00:00:00 2001 From: Jari Sundell Date: Sat, 5 Jul 2025 15:31:52 +0200 Subject: [PATCH] Added network.block.ipv4in6.set command. --- configure.ac | 4 +++- src/command_network.cc | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 6263b930..c8921c8d 100644 --- a/configure.ac +++ b/configure.ac @@ -10,7 +10,9 @@ AM_PROG_AR LT_INIT AC_PROG_CXX -AC_DEFINE([API_VERSION], [14], [api version]) + +# Incremented after 0.15.4 release. +AC_DEFINE([API_VERSION], [15], [api version]) # Filter out unwanted flags added by autoconf on some systems, e.g. MacOS. TORRENT_REMOVE_UNWANTED(CXX, $CXX, -std=c++11 -std=gnu++11) diff --git a/src/command_network.cc b/src/command_network.cc index 0ea00e15..336d2522 100644 --- a/src/command_network.cc +++ b/src/command_network.cc @@ -268,6 +268,8 @@ initialize_command_network() { CMD2_ANY_VALUE_V ("network.block.ipv4.set", std::bind(&torrent::ConnectionManager::set_block_ipv4, cm, std::placeholders::_2)); CMD2_ANY ("network.block.ipv6", std::bind(&torrent::ConnectionManager::is_block_ipv6, cm)); CMD2_ANY_VALUE_V ("network.block.ipv6.set", std::bind(&torrent::ConnectionManager::set_block_ipv6, cm, std::placeholders::_2)); + CMD2_ANY ("network.block.ipv4in6", std::bind(&torrent::ConnectionManager::is_block_ipv4in6, cm)); + CMD2_ANY_VALUE_V ("network.block.ipv4in6.set", std::bind(&torrent::ConnectionManager::set_block_ipv4in6, cm, std::placeholders::_2)); CMD2_ANY ("network.prefer.ipv6", std::bind(&torrent::ConnectionManager::is_prefer_ipv6, cm)); CMD2_ANY_VALUE_V ("network.prefer.ipv6.set", std::bind(&torrent::ConnectionManager::set_prefer_ipv6, cm, std::placeholders::_2));