mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-23 16:11: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){
|
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);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
|
@ -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": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user