mirror of
https://github.com/tnodir/fort
synced 2024-11-15 07:15:39 +00:00
UI: Set max count of ip's per app to log.
This commit is contained in:
parent
9e32f39fb1
commit
d79c80af10
@ -65,6 +65,9 @@ BasePage {
|
|||||||
var ipTextsArray = appPathIpArray[path];
|
var ipTextsArray = appPathIpArray[path];
|
||||||
if (!ipCount) {
|
if (!ipCount) {
|
||||||
ipTextsArray.push(ipText);
|
ipTextsArray.push(ipText);
|
||||||
|
} else if (ipTextsArray.length > 64) {
|
||||||
|
var oldIp = ipTextsArray.shift();
|
||||||
|
delete ipTextsMap[oldIp];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Host name
|
// Host name
|
||||||
|
Loading…
Reference in New Issue
Block a user