|
|
|
@ -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] |
|
|
|
|