Possible wg show crash fix
This commit is contained in:
parent
d8020878d5
commit
aac9bfcea6
1 changed files with 2 additions and 1 deletions
|
@ -281,7 +281,8 @@ ErrorCode ClientManagementModel::wgShow(const DockerContainer container, const S
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
for (int i = 0; i < peerList.size() && i < transferredDataList.size(); ++i) {
|
for (int i = 0; i < peerList.size() && i < transferredDataList.size() && i < latestHandshakeList.size(); ++i) {
|
||||||
|
|
||||||
const auto transferredData = getStrValue(transferredDataList[i]).split(",");
|
const auto transferredData = getStrValue(transferredDataList[i]).split(",");
|
||||||
auto latestHandshake = getStrValue(latestHandshakeList[i]);
|
auto latestHandshake = getStrValue(latestHandshakeList[i]);
|
||||||
auto serverBytesReceived = transferredData.front().trimmed();
|
auto serverBytesReceived = transferredData.front().trimmed();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue