diff options
author | luigi1111 <luigi1111w@gmail.com> | 2022-04-06 00:21:19 -0400 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2022-04-06 00:21:19 -0400 |
commit | fab4f5323b896117ea5ac8c1e3b914d8876b38e9 (patch) | |
tree | ceb73e05304652f4e38092f7cd258d07c76c46de /src | |
parent | Merge pull request #8222 (diff) | |
parent | [release-v0.17] Don't require --rpc-login with --rpc-access-control-origins (diff) | |
download | monero-fab4f5323b896117ea5ac8c1e3b914d8876b38e9.tar.xz |
Merge pull request #8227
09e7d2e [release-v0.17] Don't require --rpc-login with --rpc-access-control-origins (Jeffrey)
Diffstat (limited to 'src')
-rw-r--r-- | src/rpc/rpc_args.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
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<std::string> 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::string>, std::placeholders::_1, std::locale::classic())); |