[SEBA-803] Fixing Issue:Unknown server counter starts increasing for every radius message received after freeRadius pod restarts
Change-Id: Ib74f663e00ae6b51f46c9b35c62e47597f026c1b
diff --git a/app/src/main/java/org/opencord/aaa/impl/AaaManager.java b/app/src/main/java/org/opencord/aaa/impl/AaaManager.java
index 21f9a06..d3ba6fc 100755
--- a/app/src/main/java/org/opencord/aaa/impl/AaaManager.java
+++ b/app/src/main/java/org/opencord/aaa/impl/AaaManager.java
@@ -328,7 +328,10 @@
}
public void checkForPacketFromUnknownServer(String hostAddress) {
if (!hostAddress.equals(configuredAaaServerAddress)) {
- aaaStatisticsManager.getAaaStats().incrementUnknownServerRx();
+ getConfiguredAaaServerAddress();
+ if (!hostAddress.equals(configuredAaaServerAddress)) {
+ aaaStatisticsManager.getAaaStats().incrementUnknownServerRx();
+ }
}
}