mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-08-31 23:36:18 +00:00
Add files via upload
This commit is contained in:
parent
9989df9595
commit
e6743ca7b1
4 changed files with 1 additions and 12 deletions
|
@ -201,4 +201,3 @@ Reference syntax:
|
|||
- CentOS 7+
|
||||
- Fedora 30+
|
||||
- Arch Linux
|
||||
- Manjaro
|
||||
|
|
1
go.mod
1
go.mod
|
@ -14,7 +14,6 @@ require (
|
|||
github.com/op/go-logging v0.0.0-20160315200505-970db520ece7
|
||||
github.com/pelletier/go-toml/v2 v2.1.0
|
||||
github.com/robfig/cron/v3 v3.0.1
|
||||
github.com/shirou/gopsutil/v3 v3.23.8
|
||||
github.com/xtls/xray-core v1.8.4
|
||||
go.uber.org/atomic v1.11.0
|
||||
golang.org/x/text v0.13.0
|
||||
|
|
9
main.go
9
main.go
|
@ -17,8 +17,6 @@ import (
|
|||
"x-ui/web/service"
|
||||
|
||||
"github.com/op/go-logging"
|
||||
"github.com/shirou/gopsutil/cpu"
|
||||
"github.com/shirou/gopsutil/disk"
|
||||
)
|
||||
|
||||
func runWebServer() {
|
||||
|
@ -263,13 +261,6 @@ func removeSecret() {
|
|||
}
|
||||
|
||||
func main() {
|
||||
// Get CPU info
|
||||
cpuInfo, _ := cpu.Info()
|
||||
fmt.Printf("CPU Info: %v\n", cpuInfo[0])
|
||||
|
||||
// Get disk usage
|
||||
diskUsage, _ := disk.Usage("/")
|
||||
fmt.Printf("Disk Usage: %v\n", diskUsage)
|
||||
if len(os.Args) < 2 {
|
||||
runWebServer()
|
||||
return
|
||||
|
|
2
x-ui.sh
2
x-ui.sh
|
@ -773,7 +773,7 @@ show_usage() {
|
|||
show_menu() {
|
||||
echo -e "
|
||||
--------------------------------------------------------------------------------
|
||||
${green}X-UI MANAGEMENT SCRIPT ${plain}
|
||||
${green}X-UI ENGLISH PANEL MANAGEMENT SCRIPT ${plain}
|
||||
--------------------------------------------------------------------------------
|
||||
${green}0.${plain} Exit Script
|
||||
--------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue