Fix table isPublicIp

This commit is contained in:
Matteo Gheza 2024-01-17 01:28:59 +01:00
parent b2afa90247
commit 7d0896957c
1 changed files with 1 additions and 0 deletions

View File

@ -381,6 +381,7 @@ export class TableComponent implements OnInit, OnDestroy {
}
isPublicIp(ipAddress: string) {
if(typeof ipAddress === 'undefined' || ipAddress === null) return false;
const parts = ipAddress.split('.');
if (parts.length === 4) {
return !(