Refactor system command.

This commit is contained in:
stephb9959
2021-09-27 09:52:43 -07:00
parent 04f671238c
commit d07c50909c
2 changed files with 10 additions and 8 deletions

View File

@@ -124,6 +124,7 @@ namespace OpenWifi {
auto Hosts=i->HostSize();
for(uint64_t j=0;j<Hosts;++j) {
auto CertFileName = i->Host(j).CertFile();
if(!CertFileName.empty()) {
auto InsertResult = CertNames.insert(CertFileName);
if(InsertResult.second) {
Poco::JSON::Object Inner;
@@ -135,6 +136,7 @@ namespace OpenWifi {
}
}
}
}
Answer.set("certificates", Certificates);
ReturnObject(Answer);
return;