Update ip-tests.ts

This commit is contained in:
soruh
2018-10-27 21:26:03 +02:00
committed by GitHub
parent 17033424e0
commit 8c7d6cddf2
+4
View File
@@ -20,3 +20,7 @@ ip.toString(buff);
ip.subnet('192.168.1.134', '255.255.255.192');
ip.cidrSubnet('192.168.1.134/26');
ip.cidrSubnet('192.168.1.134/26').contains('192.168.1.134');
var buf = new Buffer(128);
var offset = 64;
ip.toBuffer('127.0.0.1', buf, offset);
ip.toString(buf, offset, 4);