Commit Graph
2017 Commits
Author SHA1 Message Date
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
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
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
Markson Hon 62114510d5 Merge pull request #1961 from Zakkaus/clash-subscription
feat(subscription): import Clash/mihomo YAML subscriptions
2026-09-18 07:20:01 +08:00
Markson Hon f4717e7754 Merge pull request #1960 from Zakkaus/gui-navbar
fix(gui): layout and dark theme, node form round-trips, leaks, escaping, six-locale i18n, phone layout, build cleanup
2026-09-18 07:19:50 +08:00
Markson Hon 7f1eaed211 Merge pull request #1959 from Zakkaus/import-kind
fix(service): explicit import kind, crash and data-loss fixes, precise errors, no-cache entry page
2026-09-18 07:19:41 +08:00
Zakk 5f51d588df refactor(connect): drop the dead v2fly-only branch
checkSupport stopped returning that error when the load-balancing restriction
was removed, so the branch that cleared the connections could not run.
2026-09-18 06:42:00 +10:00
Zakk d82e7e3269 fix(gui): tell the user the GFWList is current instead of failing
The backend now reports an up-to-date list as a result, so the dialog shows an
info toast with the version rather than "could not update GFWList: … is up to
date".
2026-09-18 06:39:00 +10:00
Zakk bb1f79bb87 fix(api): stop reporting results as failures
Three endpoints answered FAIL for something the caller asked for and got:

- an up-to-date GFWList came back as "could not update GFWList: latest version
  is …. GFWList is up to date", because the check returned an error;
- deleting the GFWList when it was already gone returned the raw
  "remove …: no such file or directory";
- the update check said "failed to get latest version from Package file: 1".

The up-to-date case is now a sentinel error the controller turns into a
success carrying alreadyUpToDate, deleting what is already gone succeeds, and
the two package-index messages say what was missing. "which can not be nil"
also became a sentence about the request.
2026-09-18 06:38:52 +10:00
Zakk b2f2aff8d6 fix(dns): refuse a query that has looped back through an upstream
A rule that sends a name to a local resolver which forwards back to v2rayA
makes the two exchange the same query until one of them runs out of memory;
v2rayA/v2rayA discussion #1950 reproduces it with dnsmasq on OpenWrt. The
firewall-level self-redirect is already handled by the 0x80 mark, but nothing
saw the loop at the resolver level.

Every query this process sends upstream carries a random per-process token in
an EDNS0 local option. A query that arrives carrying that token has come back
around such a loop and is answered with SERVFAIL, with one log line per ten
seconds naming the question and how many were refused.
2026-09-18 06:30:12 +10:00
Zakk f60be002ff docs: replace the 2020 screenshot with the current interface
The README pointed at an image host upload from April 2020 showing an
interface that no longer exists. The new pair lives in the repository, so it
cannot disappear, and the dark one is served to readers whose system asks for
a dark theme.
2026-09-18 06:28:25 +10:00
Zakk f126526af0 fix(gui): put the log footer controls on one baseline
The selects, the switch and the export button each had their own height, so
the row read as three misaligned groups.
2026-09-18 06:26:22 +10:00
Zakk 99d0f1623f feat(gui): export the log from the dialog
Reading a long log in a modal is painful; a button now saves what the dialog
shows, filters included, as a timestamped text file.
2026-09-18 06:24:48 +10:00
Zakk 399cc053eb fix(gui): make the log readable on a phone and point feedback at discussions
A virtual scroller needs one fixed row height, so every log line was clipped at
the screen edge and a phone showed a column of timestamps with no messages. On
a narrow screen the tail is rendered plainly with the lines wrapped, and the
header says how many older lines are hidden.

The About text also still pointed at the issue tracker, which upstream has
closed in favour of discussions.
2026-09-18 06:18:07 +10:00
Zakk dc8520a2ec fix(asset): say why a download failed when there was no reply at all
A DNS or connection failure produced "Could not download the asset from
api.github.com (HTTP )" in the GUI, because the localized message always
rendered an HTTP status and there was none. Unreachable hosts now use their own
code with the innermost reason, so the user sees the DNS or connection error
instead of an empty pair of brackets.
2026-09-18 06:14:55 +10:00
Zakk 37d9ce7dd0 feat(i18n): render the new ASSET_UNREACHABLE backend error
A download that never got a reply has no HTTP status, so it gets its own
message with the reason instead of "(HTTP )".
2026-09-18 06:14:55 +10:00
Zakk 6f09b73d73 refactor(gui): drop the dead 401 retry queue
Auth recovery reloads the page, so nothing ever filled the queue and nothing
called its retry function; the two modal imports it needed were unused too.
Also read the token with getItem instead of hasOwnProperty on localStorage.
2026-09-18 06:12:19 +10:00