Browse Source

补缺缺失的目标信息

master ver2.0.1
xyiege 6 months ago
parent
commit
499d7c3d5c
  1. 4
      aufs/core/sendzip.go

4
aufs/core/sendzip.go

@ -19,6 +19,8 @@ type ZipBlock struct {
Basepath string // 基础路径
Curpath string // 当前路径
SelFile []string // 选中的文件
RemoteIp string // 远程主机地址,带端口
RemotePath string // 远程主机的存储路径
}
// 返回的结果结构
@ -51,6 +53,8 @@ func SendZip(w http.ResponseWriter, r *http.Request) {
Basepath: "/www/wwwroot",
Curpath: wtculpath[0],
SelFile: zipfarr,
RemoteIp: serip[0],
RemotePath: "/www/wwwroot/sync_zips",
}
// 从serip 切割出ip 和端口
splitip := strings.Split(serip[0], ":")

Loading…
Cancel
Save