mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-24 08:41:31 +00:00
bugfix for map local in windows
This commit is contained in:
parent
cfb3f21f01
commit
0868ee248c
@ -94,7 +94,7 @@ module.exports = {
|
||||
|
||||
app.get("/filetree",function(req,res){
|
||||
try{
|
||||
var root = req.query.root || process.env.HOME || "/";
|
||||
var root = req.query.root || utils.getUserHome() || "/";
|
||||
utils.filewalker(root,function(err, info){
|
||||
res.json(info);
|
||||
});
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "anyproxy",
|
||||
"version": "3.7.0Beta5",
|
||||
"version": "3.7.0Beta6",
|
||||
"description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.",
|
||||
"main": "proxy.js",
|
||||
"bin": {
|
||||
|
@ -144,7 +144,7 @@ var recorder;
|
||||
(function(){
|
||||
|
||||
//detect whether to show the filter and map btn
|
||||
$.get("/filetree?root=/",function(){
|
||||
$.get("/filetree",function(){
|
||||
$(".J_filterSection").show();
|
||||
});
|
||||
|
||||
|
@ -190,7 +190,7 @@
|
||||
(function(){
|
||||
|
||||
//detect whether to show the filter and map btn
|
||||
$.get("/filetree?root=/",function(){
|
||||
$.get("/filetree",function(){
|
||||
$(".J_filterSection").show();
|
||||
});
|
||||
|
||||
|
@ -144,7 +144,7 @@ var recorder;
|
||||
(function(){
|
||||
|
||||
//detect whether to show the filter and map btn
|
||||
$.get("/filetree?root=/",function(){
|
||||
$.get("/filetree",function(){
|
||||
$(".J_filterSection").show();
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user