update api

This commit is contained in:
加里
2014-08-13 13:27:05 +08:00
parent a9d56ef859
commit 61e2821fe6
4 changed files with 10 additions and 12 deletions

View File

@@ -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