From 09e7d2e3decf74c18be3a14e1d750ae39b71c7b4 Mon Sep 17 00:00:00 2001 From: Jeffrey Date: Fri, 25 Mar 2022 12:23:36 -0500 Subject: [release-v0.17] Don't require --rpc-login with --rpc-access-control-origins Same as PR #8187 for release v0.17 --- src/rpc/rpc_args.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src') diff --git a/src/rpc/rpc_args.cpp b/src/rpc/rpc_args.cpp index 0966fb6d2..b2d019ae7 100644 --- a/src/rpc/rpc_args.cpp +++ b/src/rpc/rpc_args.cpp @@ -247,12 +247,6 @@ namespace cryptonote auto access_control_origins_input = command_line::get_arg(vm, arg.rpc_access_control_origins); if (!access_control_origins_input.empty()) { - if (!config.login) - { - LOG_ERROR(arg.rpc_access_control_origins.name << tr(" requires RPC server password --") << arg.rpc_login.name << tr(" cannot be empty")); - return boost::none; - } - std::vector access_control_origins; boost::split(access_control_origins, access_control_origins_input, boost::is_any_of(",")); std::for_each(access_control_origins.begin(), access_control_origins.end(), std::bind(&boost::trim, std::placeholders::_1, std::locale::classic())); -- cgit v1.2.3