From 549ccbe6a05f19010b53ca1c2a2bef7bab1a696f Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Fri, 21 Apr 2023 12:28:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=20ufw=20=E9=98=B2?= =?UTF-8?q?=E7=81=AB=E5=A2=99=E7=89=88=E6=9C=AC=E5=8A=A0=E8=BD=BD=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E9=97=AE=E9=A2=98=20(#742)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/utils/firewall/client/ufw.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/utils/firewall/client/ufw.go b/backend/utils/firewall/client/ufw.go index 4bbb592e3..70f2197d0 100644 --- a/backend/utils/firewall/client/ufw.go +++ b/backend/utils/firewall/client/ufw.go @@ -38,7 +38,7 @@ func (f *Ufw) Status() (string, error) { } func (f *Ufw) Version() (string, error) { - stdout, err := cmd.Execf("%s version | grep ufwHasNoPasswordSudo", f.CmdStr) + stdout, err := cmd.Execf("%s version | grep ufw", f.CmdStr) if err != nil { return "", fmt.Errorf("load the firewall status failed, err: %s", stdout) }