Browse Source

调试

master
xyiege 5 months ago
parent
commit
4543aec7ee
  1. 2
      scalib/main.go

2
scalib/main.go

@ -37,6 +37,8 @@ func main() {
curPath := flag.String("f", "", "The local file path to upload") curPath := flag.String("f", "", "The local file path to upload")
uploadPath := flag.String("u", "", "The remote upload path") uploadPath := flag.String("u", "", "The remote upload path")
flag.Parse() flag.Parse()
// for debug
fmt.Printf("remote: %s, curPath: %s, uploadPath: %s\n", *remote, *curPath, *uploadPath)
// 将服务器的信息拆分为ip和端口 // 将服务器的信息拆分为ip和端口
harr := strings.Split(*remote, ":") harr := strings.Split(*remote, ":")
dstip := harr[0] dstip := harr[0]

Loading…
Cancel
Save