Release 3.10.0+1: sidebar UI (Home / Profiles / Settings / Logs / About), remembered account with 50 GB monthly renew + auto-renew, Windows VPN mode (wintun + tun2socks).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Navis
2026-08-01 18:34:25 +03:00
co-authored by Cursor
parent 77bd7da861
commit 01fac376ba
25 changed files with 1803 additions and 602 deletions
+33
View File
@@ -0,0 +1,33 @@
// Temporary UI preview server for development: serves the embedded UI +
// real /api handlers on a fixed local port. Not shipped.
package main
import (
"bytes"
"fmt"
"log"
"net/http"
"vpnclient/internal/apphost"
"vpnclient/internal/config"
"vpnclient/internal/core"
)
func main() {
cfgPath, err := config.LocateConfig()
if err != nil {
log.Fatal(err)
}
cfg, err := config.Load(cfgPath)
if err != nil {
log.Fatal(err)
}
logBuf := &bytes.Buffer{}
mgr, err := core.NewManager(cfgPath, cfg, logBuf)
if err != nil {
log.Fatal(err)
}
a := apphost.New(mgr, cfgPath, logBuf)
fmt.Println("preview on http://127.0.0.1:8765/")
log.Fatal(http.ListenAndServe("127.0.0.1:8765", a.Handler()))
}