update ip2region.js
This commit is contained in:
parent
0e498e27f8
commit
2e31e924b5
|
|
@ -6,13 +6,16 @@
|
|||
* @author dongyado<dongyado@gmail.com>
|
||||
* */
|
||||
|
||||
var fs = require('fs');
|
||||
var ip2r = {};
|
||||
ip2r.db_file = null;
|
||||
ip2r.db_file = null;
|
||||
ip2r.db_fd = null;
|
||||
|
||||
|
||||
exports.setDbFile = function(path)
|
||||
{
|
||||
ip2r.db_file = path;
|
||||
ip2r.db_fd = fs.open(ip2r.db_file);
|
||||
}
|
||||
|
||||
exports.getDbFile = function(path)
|
||||
|
|
|
|||
Loading…
Reference in New Issue