move some code, add message color for x25519 command

This commit is contained in:
yuzuki999
2023-06-02 08:45:22 +08:00
parent 138540cd16
commit 989b4ff13e
5 changed files with 18 additions and 14 deletions

View File

@@ -2,6 +2,7 @@ package cmd
import (
"fmt"
"github.com/Yuzuki616/V2bX/common/exec"
"strings"
)
@@ -13,7 +14,7 @@ const (
)
func checkRunning() (bool, error) {
o, err := execCommand("systemctl status V2bX | grep Active")
o, err := exec.RunCommandByShell("systemctl status V2bX | grep Active")
if err != nil {
return false, err
}