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:
@@ -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()))
|
||||
}
|
||||
Reference in New Issue
Block a user