feat(cli): add settings menu and VLESS log viewer with core selection
- Add settings menu to switch between Xray and V2Ray cores for VLESS connections - Implement core type persistence in configuration with LoadSettings/SaveSettings - Add VLESS error and access log viewer showing last 30 and 20 lines respectively - Display current core type and system time in main menu - Update VLESS connection to use selected core dynamically - Refactor monitor.go to accept 'q' key input for graceful exit instead of signal handling - Add proxy platform-specific implementations (proxy_unix.go, proxy_windows.go) - Add downloader module for managing binary resources - Include V2Ray and Xray configuration files and geodata (geoip.dat, geosite.dat) - Update CLI imports to include path/filepath and time packages - Improve user experience with core selection visibility and log diagnostics
This commit is contained in:
22
internal/proxy/proxy_unix.go
Normal file
22
internal/proxy/proxy_unix.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// +build !windows
|
||||
|
||||
package proxy
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// EnableSystemProxy включает системный прокси (заглушка для Unix)
|
||||
func EnableSystemProxy(proxyAddr string) error {
|
||||
return fmt.Errorf("автоматическая настройка системного прокси не поддерживается на этой платформе")
|
||||
}
|
||||
|
||||
// DisableSystemProxy отключает системный прокси (заглушка для Unix)
|
||||
func DisableSystemProxy() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// GetSystemProxyStatus проверяет статус системного прокси (заглушка для Unix)
|
||||
func GetSystemProxyStatus() (bool, string, error) {
|
||||
return false, "", nil
|
||||
}
|
||||
Reference in New Issue
Block a user