From 90c753425a95306c4c17c6f8cb39150610b0ec62 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Mon, 20 Mar 2023 17:00:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E8=AF=A6=E6=83=85=E4=B8=AD=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=98=9F=E5=8F=B7=EF=BC=88*=EF=BC=89?= =?UTF-8?q?=E4=BB=A3=E6=9B=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/web/actions/default/db/node.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/web/actions/default/db/node.go b/internal/web/actions/default/db/node.go index 4717e5aa..5656f39f 100644 --- a/internal/web/actions/default/db/node.go +++ b/internal/web/actions/default/db/node.go @@ -6,6 +6,7 @@ import ( "github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils" "github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/db/dbnodeutils" "github.com/iwind/TeaGo/maps" + "strings" ) type NodeAction struct { @@ -33,7 +34,7 @@ func (this *NodeAction) RunGet(params struct { "host": node.Host, "port": node.Port, "username": node.Username, - "password": node.Password, + "password": strings.Repeat("*", len(node.Password)), "description": node.Description, }