mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-03 16:56: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+
|
- CentOS 7+
|
||||||
- Fedora 30+
|
- Fedora 30+
|
||||||
- Arch Linux
|
- 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/op/go-logging v0.0.0-20160315200505-970db520ece7
|
||||||
github.com/pelletier/go-toml/v2 v2.1.0
|
github.com/pelletier/go-toml/v2 v2.1.0
|
||||||
github.com/robfig/cron/v3 v3.0.1
|
github.com/robfig/cron/v3 v3.0.1
|
||||||
github.com/shirou/gopsutil/v3 v3.23.8
|
|
||||||
github.com/xtls/xray-core v1.8.4
|
github.com/xtls/xray-core v1.8.4
|
||||||
go.uber.org/atomic v1.11.0
|
go.uber.org/atomic v1.11.0
|
||||||
golang.org/x/text v0.13.0
|
golang.org/x/text v0.13.0
|
||||||
|
|
9
main.go
9
main.go
|
@ -17,8 +17,6 @@ import (
|
||||||
"x-ui/web/service"
|
"x-ui/web/service"
|
||||||
|
|
||||||
"github.com/op/go-logging"
|
"github.com/op/go-logging"
|
||||||
"github.com/shirou/gopsutil/cpu"
|
|
||||||
"github.com/shirou/gopsutil/disk"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func runWebServer() {
|
func runWebServer() {
|
||||||
|
@ -263,13 +261,6 @@ func removeSecret() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
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 {
|
if len(os.Args) < 2 {
|
||||||
runWebServer()
|
runWebServer()
|
||||||
return
|
return
|
||||||
|
|
2
x-ui.sh
2
x-ui.sh
|
@ -773,7 +773,7 @@ show_usage() {
|
||||||
show_menu() {
|
show_menu() {
|
||||||
echo -e "
|
echo -e "
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
${green}X-UI MANAGEMENT SCRIPT ${plain}
|
${green}X-UI ENGLISH PANEL MANAGEMENT SCRIPT ${plain}
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
${green}0.${plain} Exit Script
|
${green}0.${plain} Exit Script
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue