mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-24 04:41:26 +00:00
update test script
This commit is contained in:
parent
e5d0b1bf4d
commit
d7173b9d4f
@ -62,13 +62,11 @@ module.exports =function(config){
|
||||
}
|
||||
|
||||
certMgr.getCertificate("anyproxy_internal_https_server",function(err,keyContent,crtContent){
|
||||
|
||||
https.createServer({
|
||||
SNICallback : SNIPrepareCert ,
|
||||
key : keyContent,
|
||||
cert : crtContent
|
||||
},config.handler).listen(config.port);
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
@ -303,7 +303,7 @@ function connectReqHandler(req, socket, head){
|
||||
callback();
|
||||
|
||||
}else{
|
||||
proxyPort = (targetPort == 8003)?8003:443; //ws
|
||||
proxyPort = (targetPort == 80)? 443 : targetPort;
|
||||
proxyHost = host;
|
||||
|
||||
callback();
|
||||
|
@ -25,7 +25,7 @@
|
||||
"proxy-eval": ">=1.1.1"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node test.js"
|
||||
"test": "sh test.sh"
|
||||
},
|
||||
"optionalDependencies": {},
|
||||
"repository": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user