mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-08-04 21:39:04 +00:00
update api
This commit is contained in:
@@ -139,7 +139,7 @@ function connectReqHandler(req, socket, head){
|
||||
console.log("==>will forward to local https server");
|
||||
|
||||
//forward the https-request to local https server
|
||||
httpsServerMgrInstance.fetchPort(hostname,function(err,port){
|
||||
httpsServerMgrInstance.fetchPort(hostname,userRequestHandler,function(err,port){
|
||||
if(!err && port){
|
||||
try{
|
||||
var conn = net.connect(port, 'localhost', function(){ //TODO : localhost -> server
|
||||
|
||||
Reference in New Issue
Block a user