update test script

This commit is contained in:
OttoMao 2015-02-12 14:37:44 +08:00
parent e5d0b1bf4d
commit d7173b9d4f
4 changed files with 6 additions and 4 deletions

View File

@ -62,13 +62,11 @@ module.exports =function(config){
} }
certMgr.getCertificate("anyproxy_internal_https_server",function(err,keyContent,crtContent){ certMgr.getCertificate("anyproxy_internal_https_server",function(err,keyContent,crtContent){
https.createServer({ https.createServer({
SNICallback : SNIPrepareCert , SNICallback : SNIPrepareCert ,
key : keyContent, key : keyContent,
cert : crtContent cert : crtContent
},config.handler).listen(config.port); },config.handler).listen(config.port);
}); });
} }

View File

@ -303,7 +303,7 @@ function connectReqHandler(req, socket, head){
callback(); callback();
}else{ }else{
proxyPort = (targetPort == 8003)?8003:443; //ws proxyPort = (targetPort == 80)? 443 : targetPort;
proxyHost = host; proxyHost = host;
callback(); callback();

View File

@ -25,7 +25,7 @@
"proxy-eval": ">=1.1.1" "proxy-eval": ">=1.1.1"
}, },
"scripts": { "scripts": {
"test": "node test.js" "test": "sh test.sh"
}, },
"optionalDependencies": {}, "optionalDependencies": {},
"repository": { "repository": {

4
test.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
node -v
node test.js