d
This commit is contained in:
@@ -592,10 +592,10 @@ func ImportCmToNF(w http.ResponseWriter, r *http.Request) {
|
|||||||
var scpZipCmd string
|
var scpZipCmd string
|
||||||
ipType := global.ParseIPAddr(neInfo.Ip)
|
ipType := global.ParseIPAddr(neInfo.Ip)
|
||||||
if ipType == global.IsIPv4 {
|
if ipType == global.IsIPv4 {
|
||||||
scpZipCmd = fmt.Sprintf("scp -r %s -d %s@%s:%s", filePath,
|
scpZipCmd = fmt.Sprintf("scp -r %s %s@%s:%s", filePath,
|
||||||
config.GetYamlConfig().NE.User, neInfo.Ip, config.GetYamlConfig().NE.ScpDir)
|
config.GetYamlConfig().NE.User, neInfo.Ip, config.GetYamlConfig().NE.ScpDir)
|
||||||
} else {
|
} else {
|
||||||
scpZipCmd = fmt.Sprintf("scp -r %s -d %s@[%s]:%s", filePath,
|
scpZipCmd = fmt.Sprintf("scp -r %s %s@[%s]:%s", filePath,
|
||||||
config.GetYamlConfig().NE.User, neInfo.Ip, config.GetYamlConfig().NE.ScpDir)
|
config.GetYamlConfig().NE.User, neInfo.Ip, config.GetYamlConfig().NE.ScpDir)
|
||||||
}
|
}
|
||||||
neFilePath := config.GetYamlConfig().NE.ScpDir + "/" + fileName
|
neFilePath := config.GetYamlConfig().NE.ScpDir + "/" + fileName
|
||||||
|
|||||||
Reference in New Issue
Block a user