Browse Source

合并路径

master
xyiege 6 months ago
parent
commit
1036347286
  1. 9
      aufs/core/AuFile.go

9
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"}

Loading…
Cancel
Save