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 d28d70e commit e50392d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/RADIUS_proxy_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,14 +431,16 @@ namespace OpenWifi {
RADIUS::RadiusPacket P((unsigned char *)buffer, size);
auto Destination = P.ExtractProxyStateDestination();

std::cout << __LINE__ << " : Destination = " << Destination << std::endl;
if (Destination.empty()) {
std::cout << __LINE__ << std::endl;
Destination = "0.0.0.0:0";
}

P.Log(std::cout);

std::cout << __LINE__ << std::endl;
std::cout << __LINE__ << " : Destination = " << Destination << std::endl;

if(Destination.empty()) {
std::cout << __LINE__ << std::endl;
std::cout << "No destination in CoA. Dropped." << std::endl;
Expand Down Expand Up @@ -697,7 +699,7 @@ namespace OpenWifi {
std::cout << __LINE__ << std::endl;

bool IsV4 = RequestedAddress.family() == Poco::Net::SocketAddress::IPv4;
std::cout << __LINE__ << std::endl;
std::cout << __LINE__ << " : V4: " << IsV4 << std::endl;
bool useDefault;
std::cout << __LINE__ << std::endl;
useDefault = IsV4 ? RequestedAddress.host() ==
Expand Down

0 comments on commit e50392d

Please sign in to comment.