Skip to content

Commit

Permalink
https://telecominfraproject.atlassian.net/browse/WIFI-7831
Browse files Browse the repository at this point in the history
Signed-off-by: stephb9959 <[email protected]>
  • Loading branch information
stephb9959 committed Sep 15, 2023
1 parent 09b50cd commit 625ace2
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/RADIUS_proxy_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ namespace OpenWifi {
}
P.Evaluate(ReceiveSize);

if(P.PacketTypeInt()==OpenWifi::RADIUS::Access_Accept) {
if(Logger().trace()) {
P.Log(std::cout);
}
auto SerialNumber = P.ExtractSerialNumberFromProxyState();
Expand Down Expand Up @@ -419,10 +419,12 @@ namespace OpenWifi {
Destination = "0.0.0.0:0";
}

P.Log(std::cout);
if(Logger().trace()) {
P.Log(std::cout);
}

if(Destination.empty()) {
std::cout << "No destination in CoA. Dropped." << std::endl;
poco_warning(Logger(),fmt::format("{}: CoA packet does not have a valid destination.", serialNumber));
return;
}

Expand Down Expand Up @@ -692,10 +694,6 @@ namespace OpenWifi {
return Pool[0].Addr;
}

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

if (Pool[0].strategy == "weighted") {
bool found = false;
uint64_t cur_state = std::numeric_limits<uint64_t>::max();
Expand Down

0 comments on commit 625ace2

Please sign in to comment.