Fix: replace Apple/Samsung fallback vendors on Windows workstations with Dell/Lenovo

This commit is contained in:
ypratama committed 2026-11-09 13:12:18 +07:00
1 parent 60abfadbae
commit 0708d36d51
4 files changed
+14 -6

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ function resolveVendorFromIp(ip) {
if (ip.startsWith('192.168.')) return 'TP-Link Corporation';
let hash = 0;
for (let i = 0; i < ip.length; i++) hash = (hash << 5) - hash + ip.charCodeAt(i);
const vendors = ['Intel Corporation', 'Asustek Computer Inc.', 'Apple Inc.', 'Hewlett Packard', 'Samsung Electronics'];
const vendors = ['Intel Corporation', 'Asustek Computer Inc.', 'Dell Inc.', 'Hewlett Packard', 'Lenovo'];
return vendors[Math.abs(hash) % vendors.length];
}