Release 1.2.0 Windows amd64 with Hysteria 2

This commit is contained in:
Navis
2026-07-28 07:14:52 +03:00
parent 5d968dc0e3
commit 7eaf53f7c2
22 changed files with 801 additions and 75 deletions
+12 -5
View File
@@ -13,6 +13,7 @@ import (
"vpnclient/internal/config"
"vpnclient/internal/core"
"vpnclient/internal/protocols/hysteria2"
"vpnclient/internal/protocols/naive"
)
@@ -110,12 +111,18 @@ func runInstallCore(args []string) int {
binDir = "bin"
}
}
path, err := naive.EnsureBinary(binDir)
pathNaive, err := naive.EnsureBinary(binDir)
if err != nil {
fmt.Fprintf(os.Stderr, "install-core: %v\n", err)
fmt.Fprintf(os.Stderr, "install-core naive: %v\n", err)
return 1
}
fmt.Printf("naive core ready: %s\n", path)
fmt.Printf("naive core ready: %s\n", pathNaive)
pathHy2, err := hysteria2.EnsureBinary(binDir)
if err != nil {
fmt.Fprintf(os.Stderr, "install-core hysteria2: %v\n", err)
return 1
}
fmt.Printf("hysteria2 core ready: %s\n", pathHy2)
return 0
}
@@ -149,7 +156,7 @@ func runConnect(args []string) int {
}
// Ensure official core is present.
if _, err := naive.EnsureBinary(mgr.BinDir()); err != nil {
if _, err := mgr.EnsureCore(""); err != nil {
fmt.Fprintf(os.Stderr, "connect: %v\n", err)
return 1
}
@@ -203,7 +210,7 @@ func runProbe(args []string) int {
}
cfg.SystemProxy = false
if _, err := naive.EnsureBinary(mgr.BinDir()); err != nil {
if _, err := mgr.EnsureCore(""); err != nil {
fmt.Fprintf(os.Stderr, "probe: %v\n", err)
return 1
}