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) }