mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-23 20:31:25 +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){
|
app.get("/filetree",function(req,res){
|
||||||
try{
|
try{
|
||||||
var root = req.query.root || process.env.HOME || "/";
|
var root = req.query.root || utils.getUserHome() || "/";
|
||||||
utils.filewalker(root,function(err, info){
|
utils.filewalker(root,function(err, info){
|
||||||
res.json(info);
|
res.json(info);
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "anyproxy",
|
"name": "anyproxy",
|
||||||
"version": "3.7.0Beta5",
|
"version": "3.7.0Beta6",
|
||||||
"description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.",
|
"description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.",
|
||||||
"main": "proxy.js",
|
"main": "proxy.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
@ -144,7 +144,7 @@ var recorder;
|
|||||||
(function(){
|
(function(){
|
||||||
|
|
||||||
//detect whether to show the filter and map btn
|
//detect whether to show the filter and map btn
|
||||||
$.get("/filetree?root=/",function(){
|
$.get("/filetree",function(){
|
||||||
$(".J_filterSection").show();
|
$(".J_filterSection").show();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -190,7 +190,7 @@
|
|||||||
(function(){
|
(function(){
|
||||||
|
|
||||||
//detect whether to show the filter and map btn
|
//detect whether to show the filter and map btn
|
||||||
$.get("/filetree?root=/",function(){
|
$.get("/filetree",function(){
|
||||||
$(".J_filterSection").show();
|
$(".J_filterSection").show();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ var recorder;
|
|||||||
(function(){
|
(function(){
|
||||||
|
|
||||||
//detect whether to show the filter and map btn
|
//detect whether to show the filter and map btn
|
||||||
$.get("/filetree?root=/",function(){
|
$.get("/filetree",function(){
|
||||||
$(".J_filterSection").show();
|
$(".J_filterSection").show();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user