From f5095b9f79ffc5bfb5e590ed06be57ceec77c8c5 Mon Sep 17 00:00:00 2001 From: stephb9959 Date: Fri, 20 Oct 2023 11:46:18 -0700 Subject: [PATCH] https://telecominfraproject.atlassian.net/browse/WIFI-12692 Signed-off-by: stephb9959 --- build | 2 +- src/RADIUS_helpers.h | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/build b/build index ac4213d6e..d2e1cefe8 100644 --- a/build +++ b/build @@ -1 +1 @@ -43 \ No newline at end of file +44 \ No newline at end of file diff --git a/src/RADIUS_helpers.h b/src/RADIUS_helpers.h index c12d5608d..43940fada 100644 --- a/src/RADIUS_helpers.h +++ b/src/RADIUS_helpers.h @@ -434,11 +434,11 @@ namespace OpenWifi::RADIUS { for (const auto &attribute : Attrs_) { if (attribute.type == RADIUS::Attributes::PROXY_STATE) { std::string Attr33; - // format is serial:IP:port:interface + // format is statis:server name Attr33.assign((const char *)(const char *)&P_.attributes[attribute.pos], attribute.len); auto Parts = Poco::StringTokenizer(Attr33, ":"); - if(Parts.count() == 2) { + if(Parts.count() == 2 && Parts[0] == "status") { ReplySource = Parts[1]; return true; } @@ -1017,7 +1017,6 @@ namespace OpenWifi::RADIUS { MessageAuthenticator); // int PktLen = 1 + 1 + 2 + 16 + 1 + 1 + 16 ; int PktLen = 1 + 1 + 2 + 16 + AttributesLen_; - std::cout << "Atributes len: " << AttributesLen_ << std::endl; P_.rawlen = htons(PktLen); Poco::HMACEngine H(Secret_);