fix: 从网元下载pcap放在本地temp目录

This commit is contained in:
TsMask
2023-12-12 19:39:42 +08:00
parent 0baba9e40f
commit ea59f0c8d4

View File

@@ -104,7 +104,7 @@ func (s *TcpdumpController) Download(c *gin.Context) {
}
nePath := fmt.Sprintf("/tmp/%s", body.FileName)
localPath := fmt.Sprintf("%s/tcpdump/%s", config.Get("ne.scpdir"), body.FileName)
localPath := fmt.Sprintf("/tmp/omc/tcpdump/%s", body.FileName)
err = ssh.FileSCPNeToLocal(neInfo.IP, nePath, localPath)
if err != nil {
c.JSON(200, result.ErrMsg(err.Error()))