bugfix for filename

This commit is contained in:
加里 2014-10-23 13:31:44 +08:00
parent 1cde59d7d3
commit 89d7d31bfc
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ function Recorder(option){
db; db;
option = option || {}; option = option || {};
if(option.filename){ if(option.filename && typeof option.filename == "string"){
try{ try{
if(fs.existsSync(option.filename)){ if(fs.existsSync(option.filename)){

View File

@ -1,6 +1,6 @@
{ {
"name": "anyproxy", "name": "anyproxy",
"version": "2.5.1", "version": "2.6.0",
"description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.", "description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.",
"main": "proxy.js", "main": "proxy.js",
"bin": { "bin": {