add two missing functions to ip (subnet, cidrSubnet)

This commit is contained in:
xinkai
2015-02-01 12:32:26 +08:00
parent 7bab855ae3
commit 4e752c7705
2 changed files with 27 additions and 1 deletions
+3 -1
View File
@@ -16,4 +16,6 @@ ip.mask("192.168.0.1", "255.255.255.0");
ip.not("255.255.255.0");
ip.or("192.168.0.1", "255.255.255.0");
var buff:any = ip.toBuffer(myIP);
ip.toString(buff);
ip.toString(buff);
ip.subnet('192.168.1.134', '255.255.255.192');
ip.cidrSubnet('192.168.1.134/26');