mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-24 08:41:31 +00:00
fix index page path
This commit is contained in:
parent
8d743e6276
commit
3319b91934
@ -42,6 +42,7 @@ module.exports = {
|
||||
},
|
||||
|
||||
shouldInterceptHttpsReq :function(req){
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
|
2
proxy.js
2
proxy.js
@ -246,7 +246,7 @@ function proxyWebServer(port){
|
||||
});
|
||||
|
||||
app.use(function(req,res,next){
|
||||
var indexHTML = fs.readFileSync("./web/index.html",{encoding:"utf8"});
|
||||
var indexHTML = fs.readFileSync(__dirname + "/web/index.html",{encoding:"utf8"});
|
||||
|
||||
if(req.url == "/"){
|
||||
res.setHeader("Content-Type", "text/html");
|
||||
|
Loading…
x
Reference in New Issue
Block a user