Enhance Proxy and Configuration Management

- Implemented comprehensive VMESS proxy installation with dynamic configuration
- Added support for Xray installation and configuration generation
- Introduced hostname normalization with city, architecture, and IP-based naming
- Updated proxy commands to include VMESS and VLESS subcommands
- Improved configuration management with NormalizeConfig method
- Enhanced logging and error handling for proxy-related operations
This commit is contained in:
zeaslity
2025-02-28 23:58:38 +08:00
parent 5c39bd7594
commit db3d259a0a
8 changed files with 376 additions and 29 deletions

View File

@@ -32,10 +32,10 @@ func BeautifulPrintToString(object interface{}) string {
func BeautifulPrintWithTitle(contend any, title string) {
fmt.Println()
fmt.Println(fmt.Sprintf("content tile is => %s", title))
fmt.Println(">>>>>>>> " + title + " <<<<<<<<")
bytes, _ := json.MarshalIndent(contend, "", " ")
fmt.Println(string(bytes))
fmt.Println("---------- end -----------")
fmt.Println(">>>>>>>> end <<<<<<<<")
}
func BeautifulPrintListWithTitle(contend []string, title string) {
@@ -45,7 +45,7 @@ func BeautifulPrintListWithTitle(contend []string, title string) {
for _, line := range contend {
fmt.Println(line)
}
fmt.Println("---------- end -----------")
fmt.Println(">>>>>>>> end <<<<<<<<")
}
func SplitLinePrint() {