2031 Commits
Author SHA1 Message Date
Markson Hon 4f8a83b0ff Merge pull request #1984 from Zakkaus/subscription-status
fix(subscription): show the usage once; tidy the header and the sidebar handle
v2.4.22
2026-09-18 14:21:23 +08:00
Markson Hon 872d5621d0 Merge pull request #1985 from Zakkaus/log-modal-width
fix(gui): keep the log dialog's close button on the card at wide viewports
2026-09-18 14:21:06 +08:00
Markson Hon 126ecd0ebb Merge pull request #1986 from Zakkaus/sidebar-cards
fix(gui): lay out the status sidebar cards evenly
2026-09-18 14:20:56 +08:00
Markson Hon b89545ac78 Merge pull request #1983 from Zakkaus/grpc-x-net
fix(deps): bump grpc so the service builds against x/net 0.54
2026-09-18 14:20:42 +08:00
Markson Hon e9fb9d1400 Merge branch 'main' into grpc-x-net
Signed-off-by: Markson Hon <50002150+MarksonHon@users.noreply.github.com>
2026-09-18 14:14:55 +08:00
Zakk dc5f547cf2 fix(gui): lay out the status sidebar cards evenly
The card header put the server name, the subscription name and the group tag
on one flex row: a long tag such as "PROXY - 负载均衡 (2)" squeezed the name
into two lines while staying centred against them, and the subscription name
wrapped wherever the row broke. Bulma's small message also pads the header
and the body differently, so a gap opened under the title and the body text
sat a step further in.

The name takes the row, a tag that does not fit drops to its own line, the
subscription name always sits under both, and header and body share their
padding.
2026-09-18 16:09:07 +10:00
Zakk 1d4afae43e fix(gui): keep the log dialog's close button on the card at wide viewports
The card asked for 65rem. The root font is 0.9em up to 1400px and 16px above
it, so on any wider viewport — a 200% display scaling or a zoomed-out window
gets there — 65rem is 1040px while the wrapper Buefy sizes the dialog with is
capped at 960px: the card ran 80px past it and the close button, which sits on
the wrapper's corner, ended up in the middle of the header. 60rem is 960px at
the 16px root and never wider than the wrapper.
2026-09-18 16:06:18 +10:00
Markson Hon 7285abc24c Merge pull request #1979 from v2rayA/dependabot/go_modules/service/golang.org/x/net-0.55.0
build(deps): bump golang.org/x/net from 0.54.0 to 0.55.0 in /service
2026-09-18 13:57:54 +08:00
Markson Hon 121a66cb93 Merge pull request #1981 from v2rayA/dependabot/npm_and_yarn/gui/babel/core-7.29.6
build(deps-dev): bump @babel/core from 7.20.7 to 7.29.6 in /gui
2026-09-18 13:57:38 +08:00
Markson Hon 3a218f9266 Merge pull request #1982 from v2rayA/dependabot/go_modules/service/github.com/golang-jwt/jwt/v5-5.2.2
build(deps): bump github.com/golang-jwt/jwt/v5 from 5.2.1 to 5.2.2 in /service
2026-09-18 13:57:23 +08:00
Zakk 0917ad4cfd fix(gui): tidy the subscription header and shrink the sidebar handle
"HOST(2) (info)" becomes "HOST (2) · info". The handle that brings the status
sidebar back was a 36px glyph in a shadowed box, the largest control on a
phone screen; it is a 32px target with a tooltip now.
2026-09-18 15:55:15 +10:00
Zakk 9915531f38 fix(subscription): show the usage once
The list header printed the Subscription-Userinfo header as
"download: 0 GB; upload: 0 GB; total: 107 GB; expire: 2026-10-04 18:59 UTC"
and then, after a "|", the provider's own STATUS= line with the same numbers
in GiB and a Go-formatted timestamp. The header is the standard form: when it
is present it is rendered alone as "Used 1.78 GiB / 100.00 GiB · Expires
2026-10-04" (GiB throughout, the day in local time); the STATUS= text is used
only when the provider sends no header.
2026-09-18 15:55:15 +10:00
Zakk d30d526ccf fix(deps): bump grpc so the service builds against x/net 0.54
#1973 raised golang.org/x/net to v0.54.0, which removed http2.TrailerPrefix;
google.golang.org/grpc v1.57.1 still referenced it, so `go build ./...` in
service/ failed:

    grpc@v1.57.1/internal/transport/handler_server.go:242:18: undefined: http2.TrailerPrefix

grpc v1.84.0 (with protobuf v1.36.11 and the matching genproto) builds against
it; go mod tidy moved x/net to v0.57.0 and x/crypto to v0.54.0 along the way.
2026-09-18 15:52:44 +10:00
Markson Hon 8c269b6506 Merge pull request #1978 from Zakkaus/logo-svg
feat(gui): use the vector icon for the brand, the favicon and the installer
2026-09-18 13:48:23 +08:00
dependabot[bot] a78023a38e build(deps): bump github.com/golang-jwt/jwt/v5 in /service
Bumps [github.com/golang-jwt/jwt/v5](https://github.com/golang-jwt/jwt) from 5.2.1 to 5.2.2.
- [Release notes](https://github.com/golang-jwt/jwt/releases)
- [Commits](https://github.com/golang-jwt/jwt/compare/v5.2.1...v5.2.2)

---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v5
  dependency-version: 5.2.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-18 05:45:14 +00:00
dependabot[bot] 7ac9fe552f build(deps-dev): bump @babel/core from 7.20.7 to 7.29.6 in /gui
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.20.7 to 7.29.6.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.29.6/packages/babel-core)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-version: 7.29.6
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-18 05:44:58 +00:00
dependabot[bot] a858322c4b build(deps): bump golang.org/x/net from 0.54.0 to 0.55.0 in /service
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.54.0 to 0.55.0.
- [Commits](https://github.com/golang/net/compare/v0.54.0...v0.55.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.55.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-18 05:44:42 +00:00
Zakk b1fd2c1215 feat(gui): use the vector icon for the brand, the favicon and the installer
The navbar and the login dialog showed logo2.png, a raster wordmark that
blurred on 2x displays and needed a colour filter to survive the dark theme.
The brand is now the circular icon as SVG with the name as text, so it
renders sharp at every size and takes the navbar's colour in both themes; on
narrow phones the name goes first, then the icon.

The favicon is the SVG with a multi-size .ico fallback, and the PWA-era PNGs,
the tile icon and the Windows installer icon are rendered from the same file.
2026-09-18 15:44:06 +10:00
Markson Hon 00d11954e6 Merge pull request #1973 from v2rayA/dependabot/go_modules/service/golang.org/x/crypto-0.52.0
build(deps): bump golang.org/x/crypto from 0.46.0 to 0.52.0 in /service
2026-09-18 13:41:43 +08:00
Markson Hon 7edc08901f Merge pull request #1975 from Zakkaus/log-viewer
fix(log): show the log in the web viewer without --log-file, keep the footer on screen
2026-09-18 13:40:48 +08:00
Markson Hon 4969e58377 Merge pull request #1976 from Zakkaus/windows-env-file
fix(windows): read the installer's env file before the first reboot
2026-09-18 13:40:30 +08:00
Markson Hon 44ad884824 Merge pull request #1974 from Zakkaus/icon-font-size
fix(gui): ship only the 44 icons the interface uses
2026-09-18 13:38:44 +08:00
Zakk 15c727e1e1 fix(log): show the log in the web viewer without --log-file, keep the footer on screen
Without --log-file the viewer said "log printed to console, please see log in
console", which the Windows service, the launchd job and every "log to
console" setup cannot do. The logger now also keeps its last 4 MiB in memory
and the viewer reads that tail when there is no file; the lines carry the
same timestamp and level prefix as the file adapter's.

The log area also gave way to nothing: at 50vh a short window pushed the
filters and the export button below the fold with only a scrollbar to hint at
them. It now shrinks so the footer stays visible.
2026-09-18 15:29:18 +10:00
Zakk af03469ae3 fix(windows): read the installer's env file even before the first reboot
The installer writes {app}\v2rayA_env.txt with the log file and the asset
directory and points at it with a machine-wide environment variable, then
starts the service — which runs with the Service Control Manager's
environment from boot time and does not see the variable until the next
reboot. Until then v2rayA logged nowhere and looked for assets in the config
directory, and the web log viewer showed only "log printed to console".

When neither the variable nor --win-envfile is given, look for the file where
the installer puts it: the executable's parent directory, then its own.
2026-09-18 15:29:18 +10:00
Zakk b3f2a4fbd3 fix(gui): ship only the icons the interface uses
lucide-static's stylesheet declares eot, woff2, woff, ttf and a legacy SVG
font for all 2112 icons, so Vite copied every format into web/ and the
embedded binary grew from about 26 MB to 48 MB; the SVG font alone is 20 MB of
glyph outlines. The interface uses 44 icons.

A Vite plugin (gui/build/lucide-subset.mjs) scans src/ for icon names — class
usage, icon props, dialog options and the Buefy pack's internalIcons — subsets
lucide.woff2 to those glyphs with subset-font and serves the result as a
virtual stylesheet with the 8 KB font inlined. A name the font does not have
fails the build naming it, where it used to render an empty box.
2026-09-18 15:28:20 +10:00
Markson Hon 502d082930 Merge pull request #1977 from v2rayA/main
Migrate xray-core to Go modules and port QUIC outbounds
2026-09-18 13:23:02 +08:00
Markson GuGa Beyond 7603fd3eaa gui: bundle only the woff lucide icon font
lucide-static's font CSS references all five webfont formats (eot, ttf,
svg, woff, woff2), so Vite emitted ~23 MB of icon fonts into the web panel;
the SVG font alone was ~20.6 MB. All of them render the same glyphs.

scripts/lucide-font.mjs now regenerates src/assets/lucide-font.css from the
upstream CSS with a woff-only @font-face (woff is supported by every
browser since IE9) and runs automatically via the prebuild/preserve hooks,
so a lucide-static upgrade stays in sync. The build output drops from
~23 MB of font files to a single ~414 KB woff while keeping all icon
classes.
2026-09-18 13:15:50 +08:00
Markson GuGa Beyond cffe97ca3d core: migrate xray-core from git submodule to go mod and port QUIC outbounds to daeuniverse/outbound
The vendored core/xray submodule is dropped. xray-core is now pinned via a
go mod pseudo-version resolving to v26.7.28 (commit 5ca6f4b7); v26 tags are
not directly resolvable because Xray's module path lacks the /v26 suffix, so
the pin must be made by commit hash. CI workflows and the AUR PKGBUILD no
longer need "submodules: recursive" / "git submodule update".

The juicity and tuic outbounds are ported from softwind to
github.com/daeuniverse/outbound (temporarily replaced with an olicesx fork
pending sticky-ip support):

- Dialer calls use DialContext; the network string is decoded with
  netproxy.ParseMagicNetwork instead of a "udp" prefix check, since it may
  be binary-encoded via netproxy.MagicNetwork.
- A packetConnAdapter wraps xray's UDP dial result: outbound asserts the
  underlay conn to netproxy.PacketConn whose ReadFrom/WriteTo signatures
  (netip.AddrPort / string) differ from net.PacketConn, while xray returns
  *internet.PacketConnWrapper.
2026-09-18 13:15:45 +08:00
Markson Hon 9ac9e48487 Merge pull request #1972 from v2rayA/dependabot/npm_and_yarn/gui/brace-expansion-1.1.21
build(deps): bump brace-expansion from 1.1.11 to 1.1.21 in /gui
2026-09-18 11:51:14 +08:00
dependabot[bot] ed38cfa0c1 build(deps): bump golang.org/x/crypto from 0.46.0 to 0.52.0 in /service
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.46.0 to 0.52.0.
- [Commits](https://github.com/golang/crypto/compare/v0.46.0...v0.52.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.52.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-18 03:50:11 +00:00
Markson Hon e41ca4a9b0 Merge pull request #1970 from v2rayA/dependabot/go_modules/service/github.com/gorilla/websocket-1.5.3
build(deps): bump github.com/gorilla/websocket from 1.5.0 to 1.5.3 in /service
2026-09-18 11:47:58 +08:00
Markson Hon 6d58c28fb4 Merge pull request #1971 from v2rayA/dependabot/npm_and_yarn/gui/postcss-8.5.28
build(deps): bump postcss from 8.4.20 to 8.5.28 in /gui
2026-09-18 11:47:35 +08:00
dependabot[bot] 095e11ebe4 build(deps): bump postcss from 8.4.20 to 8.5.28 in /gui
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.20 to 8.5.28.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.20...8.5.28)

---
updated-dependencies:
- dependency-name: postcss
  dependency-version: 8.5.28
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-18 03:29:25 +00:00
dependabot[bot] 9cdbe46dd9 build(deps): bump brace-expansion from 1.1.11 to 1.1.21 in /gui
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.11 to 1.1.21.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/1.1.11...v1.1.21)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 1.1.21
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-18 03:27:39 +00:00
Markson Hon 8b5f8061a9 Merge pull request #1969 from v2rayA/dependabot/npm_and_yarn/gui/browserslist-4.29.0
build(deps): bump browserslist from 4.21.4 to 4.29.0 in /gui
2026-09-18 11:27:02 +08:00
Markson Hon 9deb357f54 Merge pull request #1968 from v2rayA/dependabot/npm_and_yarn/gui/nanoid-3.3.18
build(deps): bump nanoid from 3.3.4 to 3.3.18 in /gui
2026-09-18 11:26:32 +08:00
dependabot[bot] c9f32c87be build(deps): bump github.com/gorilla/websocket in /service
Bumps [github.com/gorilla/websocket](https://github.com/gorilla/websocket) from 1.5.0 to 1.5.3.
- [Release notes](https://github.com/gorilla/websocket/releases)
- [Commits](https://github.com/gorilla/websocket/compare/v1.5.0...v1.5.3)

---
updated-dependencies:
- dependency-name: github.com/gorilla/websocket
  dependency-version: 1.5.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-17 23:33:10 +00:00
dependabot[bot] c667151ef0 build(deps): bump browserslist from 4.21.4 to 4.29.0 in /gui
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.21.4 to 4.29.0.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.21.4...4.29.0)

---
updated-dependencies:
- dependency-name: browserslist
  dependency-version: 4.29.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-17 23:32:16 +00:00
Markson Hon c151b86348 Merge pull request #1963 from v2rayA/dependabot/go_modules/core/google.golang.org/grpc-1.83.2
build(deps): bump google.golang.org/grpc from 1.82.1 to 1.83.2 in /core
v2.4.21
2026-09-18 07:32:15 +08:00
dependabot[bot] ae07b4197f build(deps): bump nanoid from 3.3.4 to 3.3.18 in /gui
Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.4 to 3.3.18.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.3.4...3.3.18)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-version: 3.3.18
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-17 23:31:52 +00:00
Markson Hon 9e13197e6d Merge pull request #1964 from v2rayA/dependabot/npm_and_yarn/gui/axios-0.33.0
build(deps): bump axios from 0.30.3 to 0.33.0 in /gui
2026-09-18 07:31:52 +08:00
Markson Hon 1ea1ac8af4 Merge pull request #1965 from v2rayA/dependabot/npm_and_yarn/gui/js-yaml-3.15.2
build(deps): bump js-yaml from 3.14.1 to 3.15.2 in /gui
2026-09-18 07:31:18 +08:00
Markson Hon 2f6614ea87 Merge pull request #1967 from v2rayA/dependabot/npm_and_yarn/gui/immutable-4.3.9
build(deps): bump immutable from 4.2.1 to 4.3.9 in /gui
2026-09-18 07:31:04 +08:00
Markson Hon 0ca17b7d30 Merge pull request #1966 from v2rayA/dependabot/npm_and_yarn/gui/baseline-browser-mapping-2.11.25
build(deps): bump baseline-browser-mapping from 2.10.18 to 2.11.25 in /gui
2026-09-18 07:30:47 +08:00
dependabot[bot] 852990d6b0 build(deps): bump immutable from 4.2.1 to 4.3.9 in /gui
Bumps [immutable](https://github.com/immutable-js/immutable-js) from 4.2.1 to 4.3.9.
- [Release notes](https://github.com/immutable-js/immutable-js/releases)
- [Changelog](https://github.com/immutable-js/immutable-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/immutable-js/immutable-js/compare/v4.2.1...v4.3.9)

---
updated-dependencies:
- dependency-name: immutable
  dependency-version: 4.3.9
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-17 23:21:29 +00:00
dependabot[bot] a72711e597 build(deps): bump baseline-browser-mapping in /gui
Bumps [baseline-browser-mapping](https://github.com/web-platform-dx/baseline-browser-mapping) from 2.10.18 to 2.11.25.
- [Release notes](https://github.com/web-platform-dx/baseline-browser-mapping/releases)
- [Commits](https://github.com/web-platform-dx/baseline-browser-mapping/compare/v2.10.18...v2.11.25)

---
updated-dependencies:
- dependency-name: baseline-browser-mapping
  dependency-version: 2.11.25
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-17 23:21:29 +00:00
dependabot[bot] e742cfe196 build(deps): bump js-yaml from 3.14.1 to 3.15.2 in /gui
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.14.1 to 3.15.2.
- [Changelog](https://github.com/nodeca/js-yaml/blob/3.15.2/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/3.14.1...3.15.2)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 3.15.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-17 23:21:19 +00:00
dependabot[bot] 98878d1eae build(deps): bump axios from 0.30.3 to 0.33.0 in /gui
Bumps [axios](https://github.com/axios/axios) from 0.30.3 to 0.33.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.30.3...v0.33.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-version: 0.33.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-17 23:21:04 +00:00
dependabot[bot] 252cde9694 build(deps): bump google.golang.org/grpc from 1.82.1 to 1.83.2 in /core
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.82.1 to 1.83.2.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.82.1...v1.83.2)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-version: 1.83.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-17 23:20:56 +00:00
Markson Hon e7ee3b9eab Merge pull request #1962 from Zakkaus/core-dns
fix(core/dns): query_type decoding, ECS scope, cache TTLs, bind errors, SO_MARK for native outbounds, resolver loop detection
2026-09-18 07:20:11 +08:00