diff --git a/aufs/core/AuFile.go b/aufs/core/AuFile.go index bb7e566..f351729 100644 --- a/aufs/core/AuFile.go +++ b/aufs/core/AuFile.go @@ -25,12 +25,13 @@ func Flist(w http.ResponseWriter, r *http.Request) { sport := r.URL.Query().Get("sport") // sport = util.Base64dec(sport) - fmt.Printf("scip:%v", srcip) - fmt.Printf("wdir is %s\n", wdir) + // fmt.Printf("scip:%v", srcip) + // fmt.Printf("wdir is %s\n", wdir) // 获取需要监听的服务器 // sc := r.Form.Get("srcip") // 测试JSONRPC service := fmt.Sprintf("%v:%v", srcip, sport) + // fmt.Printf("service:%v", service) // service := "192.168.66.92:9098" client, err := jsonrpc.Dial("tcp", service) if err != nil { @@ -38,8 +39,8 @@ func Flist(w http.ResponseWriter, r *http.Request) { return } // 基础目录名称 - basepath := "/www/wwwroot/" - + basepath := "/www/wwwroot" + basepath = fmt.Sprintf("%v%v", basepath, wdir) // 调用远程方法 var reply string var args = Args{basepath, "dir"}