From a0b87028958aaeb282d73dcaed9acd77532af6c1 Mon Sep 17 00:00:00 2001 From: zqmfb <267821100+angularbanjo@users.noreply.github.com> Date: Thu, 26 Mar 2026 18:52:17 -0400 Subject: [PATCH] Address additional review feedback --- src/command_network.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command_network.cc b/src/command_network.cc index 117c62de..a9325c0f 100644 --- a/src/command_network.cc +++ b/src/command_network.cc @@ -197,7 +197,7 @@ apply_scgi_systemd() { scgi_thread::set_scgi(scgi); return torrent::Object(); #else - throw torrent::input_error("rtorrent was not built with systemd support."); + throw torrent::input_error("Systemd SCGI endpoint is not supported."); #endif } @@ -301,7 +301,7 @@ initialize_command_network() { CMD2_ANY_STRING ("network.scgi.open_port", std::bind(&apply_scgi, std::placeholders::_2, 1)); CMD2_ANY_STRING ("network.scgi.open_local", std::bind(&apply_scgi, std::placeholders::_2, 2)); CMD2_VAR_BOOL ("network.scgi.dont_route", false); - CMD2_ANY_VALUE_V ("network.scgi.open_systemd", [](auto, auto& value) { if (value != 0) apply_scgi_systemd(); }); + CMD2_ANY ("network.scgi.open_systemd", [](auto, auto) { return apply_scgi_systemd(); }); CMD2_ANY_STRING ("network.xmlrpc.dialect.set", [](const auto&, const auto& arg) { return apply_xmlrpc_dialect(arg); }) CMD2_ANY ("network.xmlrpc.size_limit", [](const auto&, const auto&) { return rpc::rpc.size_limit(); });