diff --git a/src/RADIUS_Destination.h b/src/RADIUS_Destination.h index 2fdaf3f4..91a1b3d1 100644 --- a/src/RADIUS_Destination.h +++ b/src/RADIUS_Destination.h @@ -125,7 +125,7 @@ namespace OpenWifi { P.PacketType(), NumberOfReceivedBytes)); AP_WS_Server()->SendRadiusAuthenticationData(SerialNumber, Buffer, NumberOfReceivedBytes); - P.Log(std::cout); + // P.Log(std::cout); } else { poco_trace(Logger_, "AUTH packet dropped."); } @@ -133,16 +133,13 @@ namespace OpenWifi { DBGLINE auto SerialNumber = P.ExtractSerialNumberFromProxyState(); if (!SerialNumber.empty()) { - DBGLINE - P.Log(std::cout); +// P.Log(std::cout); poco_trace(Logger_, fmt::format("{}: {} Received {} bytes.", SerialNumber, P.PacketType(), NumberOfReceivedBytes)); AP_WS_Server()->SendRadiusAccountingData(SerialNumber, Buffer, NumberOfReceivedBytes); - DBGLINE } else { - DBGLINE poco_trace(Logger_, "ACCT packet dropped."); } } else if (P.IsAuthority()) { diff --git a/src/RADIUS_proxy_server.cpp b/src/RADIUS_proxy_server.cpp index 4b9b84b7..8710c5be 100644 --- a/src/RADIUS_proxy_server.cpp +++ b/src/RADIUS_proxy_server.cpp @@ -96,6 +96,7 @@ namespace OpenWifi { poco_trace(Logger(),fmt::format("{}: Sending Acct {} bytes to {}", serialNumber, P.Size(), Destination)); if(DestinationServer->second->ServerType()!=GWObjects::RadiusEndpointType::generic) { Secret = DestinationServer->second->Pool().acctConfig.servers[0].secret; + std::cout << "Secret" << Secret << std::endl; if(RecomputeAuthenticator) { DBGLINE P.RecomputeAuthenticator(Secret); @@ -139,7 +140,6 @@ namespace OpenWifi { std::string Secret; RouteAndSendAccountingPacket(Destination, serialNumber, P, false, Secret); RADIUSSessionTracker()->AddAccountingSession(Destination, serialNumber, P, Secret); - } catch (const Poco::Exception &E) { Logger().log(E); } catch (...) {