UI: Set max count of ip's per app to log.

This commit is contained in:
Nodir Temirkhodjaev 2017-09-05 20:05:39 +05:00
parent 9e32f39fb1
commit d79c80af10

View File

@ -65,6 +65,9 @@ BasePage {
var ipTextsArray = appPathIpArray[path];
if (!ipCount) {
ipTextsArray.push(ipText);
} else if (ipTextsArray.length > 64) {
var oldIp = ipTextsArray.shift();
delete ipTextsMap[oldIp];
}
// Host name