feat: 文件资源统一放到/usr/local/omc
This commit is contained in:
@@ -141,7 +141,7 @@ func (s *PacketController) FilePull(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
fileName := fmt.Sprintf("%s.pcap", querys.TaskNo)
|
||||
localFilePath := filepath.Join("/tmp/omc/packet", fileName)
|
||||
localFilePath := filepath.Join("/usr/local/omc/packet", fileName)
|
||||
if runtime.GOOS == "windows" {
|
||||
localFilePath = fmt.Sprintf("C:%s", localFilePath)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user