srcIp === getServerIP()

This commit is contained in:
Sefinek committed 2024-12-25 00:14:15 +01:00
1 parent e1bfd289fd
commit 4df9c9c4be
5 files changed
+39 -7

No files matched your search

-10
View File
@@ -1,10 +0,0 @@
const ipaddr = require('ipaddr.js');
module.exports = ip => {
const range = ipaddr.parse(ip).range();
return [
'unspecified', 'multicast', 'linkLocal', 'loopback', 'reserved', 'benchmarking',
'amt', 'broadcast', 'carrierGradeNat', 'private', 'as112', 'uniqueLocal',
'ipv4Mapped', 'rfc6145', '6to4', 'teredo', 'as112v6', 'orchid2', 'droneRemoteIdProtocolEntityTags',
].includes(range);
};