Skip to content

Commit

Permalink
https://telecominfraproject.atlassian.net/browse/WIFI-12868
Browse files Browse the repository at this point in the history
Signed-off-by: stephb9959 <[email protected]>
  • Loading branch information
stephb9959 committed Aug 31, 2023
1 parent a17529d commit 992616c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/RADIUS_proxy_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,10 @@ namespace OpenWifi {
return Pool[0].Addr;
}

if(Pool.empty()) {
std::cout << __LINE__ << std::endl;
}

std::cout << __LINE__ << std::endl;
if (Pool[0].strategy == "weighted") {
bool found = false;
Expand Down Expand Up @@ -800,6 +804,7 @@ namespace OpenWifi {
Pool[index].state += 1;
return Pool[index].Addr;
} else if (Pool[0].strategy == "random") {
std::cout << __LINE__ << std::endl;
if (Pool.size() > 1) {
std::cout << __LINE__ << std::endl;
auto index = std::rand() % Pool.size();
Expand Down

0 comments on commit 992616c

Please sign in to comment.