Added blacklist
This commit is contained in:
parent
7550136e35
commit
ff01ff714a
|
@ -82,6 +82,18 @@ const networks = networksInfo.map(network => {
|
|||
export async function getNetworkForIP(ip: string) {
|
||||
z.string().ip().parse(ip)
|
||||
|
||||
console.log(ip)
|
||||
|
||||
const blackList = ['10.7.0.10']
|
||||
|
||||
if (blackList.includes(ip))
|
||||
return {
|
||||
name: 'Endereço IP inválido',
|
||||
shortName: 'XX',
|
||||
network: '?',
|
||||
isSupported: false
|
||||
}
|
||||
|
||||
const network = networks.find(network => network.contains(ip))
|
||||
|
||||
if (!network) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user