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

This commit is contained in:
TsMask committed 2025-09-28 18:39:24 +08:00
1 parent 63dfdd2f47
commit 618bc5c1f9
1 file changed
+1 -1
@@ -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