Game

Shubham__thakur0 · June 24, 2022
console.log("hello worldconsole.log('Node version ' + process.version)

const net = require('net')

const reservedIPBlocklist = new net.BlockList()
reservedIPBlocklist.addSubnet('1.1.1.1', 32, 'ipv4')

for (const ip of ["10.0.0.1", "1.1.1.1", "4.3.2.4", "27.192.11.1", 
"192.168.1.9"]) {
    console.log(ip, reservedIPBlocklist.check(ip, 'ipv4'))    
}
Output
(Run the program to view its output)

Comments

Please sign up or log in to contribute to the discussion.