1809 Commits
Author SHA1 Message Date
Markson Pigeonzilla Plus e5ed9e3a11 fix(ci): add missing install/aur/tool/ scripts to git tracking
The ssh-add_expect (and related expect scripts) were present on disk
but not tracked by git, causing CI to fail with
'No such file or directory' when running the AUR release step.
v2.4.5
2026-06-30 03:26:09 +08:00
Markson Pigeonzilla Plus 6697d44b18 feat(v2raya-bin): add v2raya_core binary to AUR package
- Add v2raya_core source downloads and checksums for all architectures
  in PKGBUILD and .SRCINFO
- Install v2raya_core to /usr/bin/v2raya_core in package step
- Update deploy_v2raya_bin.sh to compute and substitute v2raya_core hashes
- Fix release workflow: download v2raya_core binaries for hash computation
- Fix release workflow: use heredoc for SSH key to avoid corruption
- Fix release workflow: correct ssh-add_expect script path
2026-06-30 03:15:25 +08:00
Markson Hon f54fbf58d8 Merge pull request #1888 from MarksonHon/main
fix: resolve server deletion failure and settings not persisting
2026-06-29 21:43:40 +08:00
Markson Joe Hon d5ea5e41b2 fix: resolve DNS hijacking issues in redirect and tproxy modes
- Fix routing rule order: move specific dns-in:53→dns-out rule before
  the generic dns-in→direct rule to ensure DNS queries hit dns-out first
- Fix transparent inbound DNS routing: change from direct+geoip:private
  to unconditional dns-out for port 53 in tproxy mode
- Add warning log when CouldLocalDnsListen() fails (port 53 conflict)
2026-06-29 20:40:21 +08:00
Markson Joe Hon 186a463ea4 fix: resolve server deletion failure and settings not persisting
- Clean up outbound_connections foreign key before deleting from servers in ListRemove
- Preserve user's TproxyExcludedInterfaces setting after FillEmpty defaults
- Add cursor: pointer style to proxy group toggle tag in frontend
2026-06-29 20:05:13 +08:00
Markson Hon 06defad587 Merge pull request #1887 from EpLiar/fix/dark-mode-full-height
fix(gui): keep dark background across full page height
2026-06-29 19:18:38 +08:00
EpLiar 8a2bc163f8 fix(gui): extend dark background beyond viewport 2026-06-29 18:30:12 +08:00
Markson Hon 4e366494a3 Merge pull request #1885 from yuexps/main
feat(server/gui): add Unix Domain Socket and BaseUrl support for FnOS & reverse proxies
v2.4.4
2026-06-28 21:30:49 +08:00
yuexps 024e764313 feat(server/gui): add Unix Domain Socket and BaseUrl support for FnOS & reverse proxies 2026-06-28 20:40:07 +08:00
Markson Pigeonzilla Plus bf8aa12ace service: drop ngui and drop v2ray/xray check v2.4.3 2026-06-26 10:07:43 +08:00
Markson Pigeonzilla Plus ff6bf0a43d Remove v2ray/xray core version detection and comparison logic
Since v2rayA now exclusively uses the v2raya_core binary, simplify or
remove all logic that detected, compared, or branched on different
core types (v2ray, xray, merged).

- Remove CheckCoreVersion, CoreVersionMismatchError, and the
  CoreVersion check in StartCoreProcess — core v2raya version
  comparison is no longer needed.

- Remove DetectCoreTypeByBinaryName and the Unknown/V2ray/Xray/Merged
  variant aliases. The only remaining Variant constant is V2rayaCore.

- Simplify GetV2rayServiceVersion: drop all CoreType/env-config
  detection and variant mismatch verification. The function always
  returns V2rayaCore and the version string from the binary.

- Simplify CheckV5 / isVersionSatisfied to return only an error,
  dropping the unused Variant return value.

- Remove variant-branching in Shadowsocks and Trojan Configuration
  methods — both always use the MT (Xray-compatible) path.

- Remove the CheckCoreVersion call from version.go and hardcode
  coreVersionValid/ variant in the API response.

- Drop the now-unused where import from shadowsocks.go and trojan.go.
v2.4.2
2026-06-26 09:44:14 +08:00
Markson Pigeonzilla Plus 05a743ed30 ci: format yaml format v2.4.1 2026-06-25 22:33:26 +08:00
Markson Pigeonzilla Plus a4a6740a5c ci: add GeoIP and GeoSite to Linux packages 2026-06-25 22:32:08 +08:00
Markson Hon 5b364227c2 Merge pull request #1883 from MarksonHon/main
Update xray-core and dependencies, enhance ngui features and fixes
2026-06-25 22:13:25 +08:00
Markson Hon 6bbf135dfb Merge pull request #1884 from yuexps/main
fix(db/sqlite): fix empty subscription servers due to invalid JSON marshal
2026-06-25 22:13:01 +08:00
yuexps eb4f5b0156 fix(db/sqlite): fix empty subscription servers due to invalid JSON marshal 2026-06-25 14:07:12 +08:00
Markson Hon cfe5a69049 chore: update xray submodule to v26.6.1 and replace allowInsecure with cert pinning
- Update core/xray submodule from v1.260327.0 (v26.3.27) to v26.6.1
- Remove deprecated AllowInsecure field from all protocol structs
- Add PinnedPeerCertSha256 and VerifyPeerCertByName fields (service layer)
- Update ngui (Nuxt) frontend with text inputs for new fields
- Update gui (Vue 2) frontend with text inputs for new fields
- Keep existing PinnedSHA256 for juicity (no duplicate)
- Backward compatible: old allowInsecure params silently ignored
- Run go mod tidy to update dependencies
2026-06-20 22:51:17 +08:00
Markson Pigeonzilla a30c757d07 fix(service): reduce lock contention, improve Windows resilience, fix TinyTun races
ProcessManager.Start() now runs resolv/GFWList checks before acquiring
m.mu and defers afterStart (transparent-proxy setup, DNS, TinyTun,
post-start hook) to after the lock is released, eliminating multi-second
lock holds caused by DNS lookups and external hook commands.

TinyTun:
- Fix cancel/stopping ordering race in startTinyTun: assign the new
  cancel func before clearing the stopping flag so a concurrent
  stopTinyTun always sees the correct cancel
- Resolve proxy-node hostnames concurrently with sync.WaitGroup instead
  of sequentially, reducing config-generation latency
- stopTinyTun now waits up to 5 s for the process to exit via a done
  channel closed by the monitor goroutine after cmd.Wait() returns

Windows service lifecycle:
- cleanupResources enforces a 30 s hard timeout and adds panic recovery
- HTTP router is shut down before the core process on service stop
- router.Run uses an explicit http.Server + Shutdown() for graceful teardown

Connectivity monitor:
- Extend startup grace period to 15 s on Windows (5 s elsewhere)
- Replace fixed 30 s re-check ticker with exponential back-off (30/60/120 s)
- Probe TinyTun availability via TCP dial to the SOCKS5 port instead of HTTP

Platform guards:
- resolv.CheckResolvConf/WriteResolvConf: no-op on non-Linux
- DNS-hijack operations (NewResolvHijacker, HijackResolv, etc.): Linux-only
2026-05-22 15:50:14 +08:00
Markson Pigeonzilla a76c965c36 fix(windows): prevent spurious etc\v2raya directory and boltv4.db on startup
On Windows, calling configurev4.IsConfigureNotExists() triggered the v4
library to lazy-initialize using its Linux-default config path (/etc/v2raya).
On Windows, /etc/v2raya resolves to \etc\v2raya on the current drive root
(e.g. C:\etc\v2raya).  The v4 library then called os.MkdirAll to create that
directory and bbolt.Open to create boltv4.db inside it -- neither of which
is intentional or useful on Windows.

v2rayA v4 was Linux-only, so no v4 configuration data can ever exist on a
Windows machine.  Guard the entire v4 migration check with a runtime.GOOS
check to skip it on Windows.

Also extend sanitizeConfigDirForPlatform to catch the relative-path variant
etc/v2raya (without a leading slash) in addition to the existing check for
the drive-relative /etc/v2raya, providing defence-in-depth if V2RAYA_CONFIG
is ever set to such a value.
2026-05-22 13:20:18 +08:00
Markson Pigeonzilla 63434c38f6 fix(windows/tun): resolve frontend stuck in Checking state after enabling Tun
When transparent proxy (TinyTun/wintun) is enabled on Windows, the wintun
driver briefly disrupts all traffic while installing routes.  This caused
two problems:

1. The connectivity monitor fired its first probe too early, before routes
   were fully set up, and received a false network-unavailable result.  This
   stopped TinyTun prematurely and set networkPaused=true, leaving the
   frontend's status tag stuck on the Checking spinner indefinitely.

2. The frontend's /touch request in node.vue created() could fail during
   that same disruption window, making the component stay in the loading
   state with no retry.

Fixes:
- connectivity.go: add a 5-second startup delay before the first probe so
  that wintun has time to finish installing routes.
- node.vue: replace the single /touch call with a retry loop (up to 3
  attempts, 2 s apart) that handles both network errors and non-SUCCESS
  responses; always sets ready=true after the last attempt to unblock the UI.
- App.vue: call syncLatestNodeOverview() on every WebSocket (re)connect so
  the running state is refreshed even if a WS message was missed while the
  connection was down.
2026-05-22 13:20:06 +08:00
Markson Pigeonzilla 3956538ff4 chore: remove yarn.lock 2026-05-22 13:19:55 +08:00
Markson Hon 942afc75c3 chore: add root yarn.lock 2026-05-11 23:38:32 +08:00
Markson Hon a86b134866 feat(ngui): unify header interactions and improve i18n and page resilience 2026-05-11 23:38:32 +08:00
Markson Hon 2c20e934e0 feat(gui): add waiting-network state and improve dark-mode node status styles 2026-05-11 23:38:32 +08:00
Markson Hon 18daf4f6cc fix(core): enable UDP support for Trojan and TinyTun 2026-05-11 23:38:32 +08:00
Markson Hon 72dad35557 feat(service): pause transparent proxy on network loss and report state 2026-05-11 23:38:32 +08:00
Markson Hon baf3db6039 feat(tuic): add native TUIC outbound support 2026-05-11 23:38:32 +08:00
Markson Hon 3a02ad2933 chore(build): use env-based bash shebang 2026-05-11 23:38:32 +08:00
Markson Hon 5a3a44b65b feat: add custom inbound-to-outbound binding with per-inbound routing rules 2026-05-11 23:38:32 +08:00
Markson Hon a7fa018436 feat(vless): implement structured XHTTP/Reality fields and split VMess/VLESS tabs
- Split the single 'V2RAY' tab in gui/modalServer.vue into separate
  'VMESS' (tab 0) and 'VLESS' (tab 1) tabs
- Remove the 'Extra Raw JSON' textarea for XHTTP transport and replace
  it with complete structured form fields in both tabs:
  - Mode, Uplink HTTP Method
  - noGRPCHeader / noSSEHeader toggles
  - Range config pairs: scMaxEachPostBytes, scMinPostsIntervalMs,
    scStreamUpServerSecs, xPaddingBytes, scMaxBufferedPosts
  - Full xmux config: maxConcurrency, maxConnections, cMaxReuseTimes,
    hMaxRequestTimes, hMaxReusableSecs (all ranges), hKeepAlivePeriod
  - Dynamic Custom Headers list (key/value pairs)
- Add XHTTPRangeConfig and XHTTPXmux types to coreObj.go; expand
  XHTTPSettings to cover all splithttp proto client fields
- Extend V2Ray struct with 25 new XHTTP fields; update ParseVlessURL,
  ExportToURL, and Configuration() accordingly
- Add queryInt / setIntQuery helpers for URL param parsing
- Update all tabChoice indices (+1) for WireGuard through AnyTLS
- Add watch on tabChoice to auto-set v2ray.protocol
2026-05-05 21:46:49 +08:00
Markson Hon 80d9347c19 Merge branch 'v2rayA:main' into main 2026-05-05 11:41:18 +08:00
Markson Hon 479c96c058 ci(release): add linux arm64 artifacts to release packaging
Download Linux arm64 service/core artifacts in release_main workflow, package them into v2raya-arm64-linux.zip, generate checksums, and upload to homebrew release assets.
2026-05-05 11:40:26 +08:00
Markson Hon 1d39ea65ca fix(router): harden embedded statigz route registration
Add a safe statigz handler wrapper that validates fs roots and recovers from FileServer initialization panics.\n\nUse a generic embedded route registrar for /static and /_nuxt with fallback candidates, so both gui and ngui layouts avoid startup panic: open .: file does not exist.
2026-05-05 11:39:02 +08:00
Markson Hon 72c73687f0 fix: prevent panic when _nuxt directory does not exist in embed FS
- Wrap /_nuxt/* route registration in fs.Sub() error check
- When _nuxt directory is absent (gui build without ngui),
  skip route registration entirely instead of passing an invalid
  FS to statigz.FileServer which caused panic on Open('.')
2026-05-05 11:20:29 +08:00
Markson Hon a0146071af fix(ngui): 修复 pnpm lockfile 兼容性问题及构建错误
- 重新生成 pnpm-lock.yaml (lockfileVersion 9.0),兼容 pnpm 10.x
- 添加 pnpm.overrides 将 @intlify/shared 和 @intlify/message-compiler
  固定在 9.3.0-beta.16,解决 Node.js 25.x 下 ESM-only 包被 CJS require 的问题
- 修复 locales/zh-hans.yaml 中重复的 'log' 键
2026-05-05 11:15:32 +08:00
Markson Hon 7faab1b312 feat(ngui): migrate server editor and settings page from gui
- Add ServerEditor.vue (1864 lines): full server create/edit dialog
  supporting 11 protocols (VMess/VLESS/Trojan/SS/SSR/Hysteria2/Juicity/
  AnyTLS/TUIC/HTTP/SOCKS5/WireGuard) with Reality protocol parameters
  (fp/pbk/sid/spx), URL import/export, and form validation
- Integrate ServerEditor into SubServer.vue with create/edit buttons
  and refresh callback
- Rewrite settings page (setting.vue) with ElCollapse panels covering:
  GFWList, Transparent Proxy, Routing Rules, Advanced Settings,
  Auto-Update, Ports/DNS/CustomInbound/TUN sub-dialogs
- All components use Vue 3 Composition API, Element Plus, and
  ngui composables (fetch.ts) for backend API communication
2026-05-05 10:50:27 +08:00
Markson Hon b94cb0bb2b feat: add build-with-ngui scripts and serve _nuxt/ routes
- Add build-with-ngui.sh (Linux) and build-with-ngui.ps1 (Windows)
  using pnpm + nuxt generate for ngui frontend
- Configure nuxt.config.ts with nitro.output.publicDir pointing to
  service/server/router/web/ for go:embed compatibility
- Add /_nuxt/* route in ServeGUI() to serve Nuxt 3 static assets
  alongside existing /static/* route
- Both build systems coexist: build.sh for gui, build-with-ngui.sh for
  ngui, Go router handles both
2026-05-05 09:34:55 +08:00
Markson Hon dc60a2de52 fix(ngui): display Reality parameters in VLESS server detail view
- Expand query object into flat key-value pairs in VLESS View dialog
- Fix [object Object] rendering for query parameters
- Display fp/pbk/sid/spx (fingerprint/publicKey/shortId/spiderX)
  as individual form items
- Fix VLESS auth parsing: use decodeURIComponent instead of atob().split()
- Delete expanded query key after flattening to avoid duplicates
2026-05-05 09:09:40 +08:00
Markson Hon c017127867 chore: update xray-core to v26.3.27 and sync dependencies
- Xray-core submodule already pointed to v26.3.27 (d2758a02)
- Synchronized go.mod/go.sum dependencies via go mod tidy
- No code changes required: v26.3.23→v26.3.27 has no breaking changes
  for Reality protocol
- RealitySettings JSON tags remain fully compatible with Xray-core
  v26.3.27 REALITYConfig
2026-05-05 08:51:07 +08:00
Markson Hon 074305b21b Merge pull request #1870 from MarksonHon/main
Migrate to SQLite, enhance APIs, and improve UI features
v2.4.0
2026-05-04 21:59:42 +08:00
Markson Hon 807438bb27 feat: add WebSocket Early Data, gRPC MultiMode config and WireGuard tab in frontend
- Add maxEarlyData and earlyDataHeaderName input fields for WebSocket transport in modalServer.vue
- Add multiMode switch, idleTimeout, healthCheckTimeout, permitWithoutStream, initialWindowsSize fields for gRPC transport
- Add WireGuard protocol tab with 12 configuration fields (name, address, port, keys, etc.)
- Update resolveURL/generateURL functions to support new parameters for vless:// and wireguard:// links
- Update data model initialization with new fields
- Add Chinese and English translations for all new UI labels
- Fix backend v2ray.go: add IdleTimeout, HealthCheckTimeout, PermitWithoutStream, InitialWindowsSize parsing in gRPC config generation
2026-05-04 21:53:13 +08:00
Markson Hon 487c511062 feat: support WebSocket Early Data, gRPC MultiMode and WireGuard protocol
- Add MaxEarlyData and EarlyDataHeaderName fields to WsSettings for WebSocket Early Data support
- Add MultiMode, IdleTimeout, HealthCheckTimeout, PermitWithoutStream, InitialWindowsSize fields to GrpcSettings
- Add WireGuardSettings and WireGuardPeer structs for WireGuard outbound configuration
- Add wireguard to supported import protocol prefixes
- Parse and export WebSocket Early Data and gRPC MultiMode parameters in V2Ray server object
2026-05-04 21:32:36 +08:00
Markson Hon 106cd8220e feat(db): fix migration to SQLite 2026-05-04 20:30:15 +08:00
Markson Hon 07ac6f7ca1 build: fix windows target 2026-05-04 20:00:33 +08:00
Markson Hon 6bc776e31b build: disable cgo for loong64 2026-05-04 19:53:04 +08:00
Markson Hon 8d783e219d build: fix loong64 sqlite build path in CI
- route loong64 to sqlite3(cgo) driver branch

- install loongarch cross compiler and enable cgo for loong64 in binaries workflow

- bump bbolt to v1.4.3 for loong64 compatibility

- keep no-cgo cross builds compile-clean for loong64/mips64
2026-05-04 19:45:26 +08:00
Markson Hon c6e21dc591 build: fix mips-family sqlite driver selection and CI cgo setup
- extend mips driver build tags to cover mips/mips64 variants

- update sqlite validation message to mips-family scope

- enable CGO only for Linux mips-family targets in binaries workflow

- install required mips cross compilers in CI
2026-05-04 19:37:22 +08:00
Markson Hon afd73bbbc8 service/db: switch sqlite driver by target architecture
Use build-tag specific driver selection for sqlite:

- keep modernc sqlite on non-mipsle targets

- use go-sqlite3 for mipsle builds with cgo

- return explicit error when sqlite driver is unavailable

Also apply the same driver selection in migration db initialization.
2026-05-04 19:27:15 +08:00
Markson Hon 8ccd4bb85a Merge branch 'v2rayA:main' into main 2026-05-04 19:10:00 +08:00
Markson Hon 7ce555ec45 feat(gui): improve node management UI and add selected-node export actions 2026-05-04 19:07:28 +08:00