fix: initialize rpc_device endpoint and device index before parsing

This commit is contained in:
BECCA-Labs 2026-06-13 16:13:44 -05:00
parent 5f917a64b3
commit 053202f97a

View File

@ -176,6 +176,8 @@ static std::vector<rpc_device> extract_device_from_rpc_device(std::vector<std::
std::vector<rpc_device> rpc_servers;
for (auto & device : devices) {
rpc_device rpc;
rpc.device = 0;
rpc.endpoint = device;
auto value = string_split(device, "|");
if (value.size() == 2) {
rpc.device = std::stoi(value[1]);