Browse Source

调试

master
xyiege 4 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")
uploadPath := flag.String("u", "", "The remote upload path")
flag.Parse()
// for debug
fmt.Printf("remote: %s, curPath: %s, uploadPath: %s\n", *remote, *curPath, *uploadPath)
// 将服务器的信息拆分为ip和端口
harr := strings.Split(*remote, ":")
dstip := harr[0]

Loading…
Cancel
Save