From ce993c6fcdc3c2bcdc8ffbf19545d845c7e8879b Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 25 Sep 2025 15:14:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20mml-udm=20dec=20key=E5=90=8E=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E6=96=87=E4=BB=B6=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- features/mml/mml.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/features/mml/mml.go b/features/mml/mml.go index 6878ca71..24c9eb47 100644 --- a/features/mml/mml.go +++ b/features/mml/mml.go @@ -616,6 +616,16 @@ func PostMMLToNF(w http.ResponseWriter, r *http.Request) { result := re1.ReplaceAllString(string(buf[0:n-len(neType)-2]), "") result = re2.ReplaceAllString(result, "") mmlResult = append(mmlResult, result) + + // UDM 特殊命令处理 + if neType == "UDM" && mml == "dec key" { + output, err := neService.NewNeInfo.NeRunSSHCmd(neInfo.NeType, neInfo.NeId, "cat /usr/local/etc/udm/ueKeyProfile.tmp") + if err != nil { + mmlResult = append(mmlResult, err.Error()) + } else { + mmlResult = append(mmlResult, output) + } + } } }