mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 12:40:11 +00:00
move some code, add message color for x25519 command
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user