feat: 导出udm-auth未加密数据

This commit is contained in:
TsMask
2025-09-28 18:39:24 +08:00
parent 63dfdd2f47
commit 618bc5c1f9

View File

@@ -718,7 +718,7 @@ func (s *UDMAuthController) ExportDec(c *gin.Context) {
c.JSON(200, resp.ErrMsg(err.Error()))
return
}
sshClient.RunCMD("sudo rm -rf /user/local/etc/udm/authdata.txt")
sshClient.RunCMD(fmt.Sprintf("sudo rm -rf %s", nePath))
defer os.Remove(localFilePath)
c.FileAttachment(localFilePath, filepath.Base(nePath))
return