1992 Commits
Author SHA1 Message Date
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
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
Zakk fac66e45c7 style(router): drop a stray blank line 2026-09-18 06:03:53 +10:00
Zakk 80b3b769db fix(gui): make the custom inbound form usable
The outbound select rendered blank because nothing was selected, which reads as
an empty list — the reason two discussions report that a custom inbound cannot
be added at all (v2rayA/v2rayA #1907, #1894, #1926). It now preselects the
first outbound group, the fields sit on a grid instead of wrapping into a row
with the Add button wedged against the select, and the optional username and
password of the inbound have their own fields, with a lock on the rows that
carry credentials.
2026-09-18 05:57:17 +10:00
Zakk d56c89ef4d fix(core): kill an orphaned core that still holds the ports, name the right binary
When the OOM killer takes v2rayA the core survives, is adopted by init and
keeps 20170/20171, so every later start failed with "port is already in use"
until someone killed it by hand (second half of v2rayA/v2rayA discussion
#1932). A process holding one of our ports that runs our core binary and whose
parent is init is ours to clean up.

The version mismatch also said only which two numbers differ, so users who had
installed xray-core concluded v2rayA was broken (#1930, #1903, #1891); it now
says which binary v2rayA needs.
2026-09-18 05:57:08 +10:00
Zakk 86e01d6176 feat(inbound): let a custom inbound require a username and password
A custom inbound port was open to anyone who could reach it, and older v2rayA
versions did offer authenticated inbounds, so users who relied on them had no
replacement (v2rayA/v2rayA discussions #1894, #1907).

CustomInbound carries optional credentials, which become the inbound's account
list. Half a credential pair is rejected: it would silently leave the port open.
2026-09-18 05:57:08 +10:00
Zakk bd0f389854 fix(dns): restore /etc/resolv.conf instead of leaving a hijacked one
The hijack wrote the file directly, so on any systemd-resolved, resolvconf or
openresolv system it overwrote the resolver's own file through the symlink and
destroyed the link; stopping the proxy then wrote a second hijacked file with
public resolvers rather than restoring anything. The machine was left bypassing
its resolver with no way back short of reinstalling, which is what v2rayA/v2rayA
discussion #1958 and defect B of #1920 describe.

Save the original first — the target when it is a symlink, the content
otherwise — replace the link instead of writing through it, and put the
original back on stop. Closing the hijacker now also waits for a tick that is
already writing, which used to put the hijacked file back after the restore.
2026-09-18 05:57:08 +10:00
Zakk d3798f0481 fix(gui): show the core version banner for this load, not the last one
node.vue read coreVersionValid from localStorage when it was created, and the
/version response of the current load only wrote localStorage afterwards. An
upgrade that made the core incompatible therefore showed nothing until the page
was reloaded, and a fixed one kept the warning for one more load. The parent
owns the value now and passes it down.
2026-09-18 05:34:10 +10:00
Zakk e8a57cb629 test(gopeed): stop the package's tests from failing everywhere
TestDown passed a directory where Down expects the destination file path and
then read the result from the working directory, so it could not pass; TestTemp
was a leftover scratch benchmark that wrote a 512 MiB file to a hard-coded
Windows path and called log.Fatal, which killed the whole test binary. Both
tests also fetch a file from GitHub and compare it with a fixed checksum.

Remove TestTemp, fix the destination, and run the two network tests only when
V2RAYA_NETWORK_TESTS=1. go test ./... is green now.
2026-09-18 05:34:00 +10:00
Zakk 59a23f9c87 fix(transparent): tear the rules down once per shutdown
Shutdown asks for the teardown twice: pre_run calls CheckAndStopTransparentProxy
and then Stop calls it again through beforeStop. Both ran the user's pre-stop
and post-stop transparent hooks, so a hook that is not idempotent ran twice on
every exit.

Record whether this process installed the rules and make the teardown a no-op
once they are gone. Rules left behind by an earlier process are still removed
by cleanupResidualTransparentProxyRules when the next ones are written.
2026-09-18 05:34:00 +10:00
Zakk fc6a8ae71c fix(core): link the dat files into the directory the core is given
v2raya_core is started with XRAY_LOCATION_ASSET and looks nowhere else, while
v2rayA only created links in that directory as a side effect of looking a file
up for itself. On a host whose XDG runtime directory is cleared between login
sessions, the core then started with an empty asset directory and failed with
"failed to open geosite.dat" although the files were installed in
/usr/share/v2raya all along; the failure reads like a broken config.

Link the four dat files the core loads by name into that directory before
starting it, taking them from the XDG data directories or the two system
directories a distribution installs into.
2026-09-18 05:34:00 +10:00
Zakk 60578fa7bb fix(gui): keep node fields intact on edit and hide the burger on desktop
- a shadowsocks userinfo arrives percent-escaped, and js-base64 decoded those
  escapes as data, so opening a node for editing rewrote its password;
- the simple-obfs path is exported as obfs-uri, which the dialog did not read,
  so saving an edited node dropped it;
- a plain trojan ws/h2 node lost its Host header, because the model never read
  the host parameter although the serializer writes it;
- the plugin options were decoded twice, which turned %2F into a separator and
  threw on a literal percent sign;
- the selection is remapped by what a row points at instead of its id, which a
  subscription update reassigns;
- the burger set its display for every width, so a desktop window showed it
  next to the full menu.
2026-09-18 05:22:40 +10:00
Zakk a46a33475b fix(serverObj): export share links with unpadded base64
The shadowsocks userinfo, the vmess body and the SSR link trimmed a single "="
from their base64, so a value that needed two padding characters was exported
with one left over. A strict decoder rejects that, and a lenient one decodes
the stray character as data: editing such a shadowsocks node in the GUI turned
its password into "test\r..." because the escaped "=" reached the decoder.
2026-09-18 05:22:30 +10:00
Zakk 1ea77f236a fix(import): keep bare http proxy links importable without a kind field
A client that predates the kind field sends only the URL, so an http(s) link
had to be guessed. Guessing "subscription" is right for every address a
provider hands out, but it took away the bare proxy link 3fd0e882 had added:
credentials, host, port and nothing else cannot be a subscription address, so
that one shape goes back to the server importer.

Also let the config loader ignore every -test.* flag instead of only -test.v,
so the packages that reach it can run their tests at all.
2026-09-18 05:11:17 +10:00
Zakk 280710a319 fix(service): roll back custom inbounds, ip forwarding and report what was restored
Three gaps the settings rollback left open:

- adding or deleting a custom inbound stored the new list and then reloaded the
  core; a core that refused the list stayed stopped with the rejected inbound
  stored, so every later start failed too;
- a settings save that flipped ip forwarding left the kernel flag on the new
  value after the setting itself was rolled back, so the stored setting and the
  host disagreed;
- the rollback reported "the previous ones are back" even when restoring the
  setting or restarting the core had failed as well.

The session secret now retries persistence instead of accepting a failed store
for the life of the process, and an unreadable secret row is no longer
overwritten with a fresh one, which would have signed out every session.
2026-09-18 05:09:36 +10:00
Zakk 6e09c172db fix(transparent): restore the redirect ingress wildcard, trim whitelist IPs, keep DNS readiness advisory
Three regressions from the previous transparent-proxy commit:

- the redirect ingress rules lost the "*" to "+" translation, so an excluded
  interface pattern such as docker* stopped matching and Docker traffic was
  redirected; the egress rules and both tproxy directions still translated it;
- the whitelist now parses its entries, and the GUI submits the textarea lines
  as typed, so a pasted CIDR with surrounding whitespace aborted the whole
  setup where the shell used to swallow it;
- the DNS readiness probe resolves a name, so a dead or slow upstream failed it
  even with the listener up, and the core could no longer start at all. The
  probe is now advisory: it still waits when DNS is healthy, but a failure is
  logged instead of aborting the start.
2026-09-18 05:07:03 +10:00
Zakk fcfc7c7864 fix(serverObj): reject an http or socks link with no server address
Defaulting the port made an absent port legal, and with it a link that carries
no host at all: `socks5://` was accepted and stored as a node with an empty
server, where the previous port conversion had rejected it.
2026-09-18 05:05:34 +10:00
Zakk b48dc5efca fix(clash): keep the Reality spider path and the uTLS fingerprint
A Reality VLESS proxy carries reality-opts.spider-x and a TLS VMess proxy
carries client-fingerprint; both were dropped by the mapping, so the imported
node handshook with an empty spider path and the default fingerprint and the
provider's server could refuse it.
2026-09-18 05:03:59 +10:00
Zakk fea9effeb4 fix(jwt): persist a random session secret
The signing secret was the hash of the subscription addresses, or of the
server hostnames when there was no subscription, so importing, editing or
deleting a server changed the secret and signed every session out mid-use.

Generate 32 random bytes on first use and keep them in the database.
2026-09-18 04:54:20 +10:00
Zakk 0005649661 fix(setting): keep the working setting and the core when a save is rejected
UpdateSetting stored the new setting before asking the core to reload it. When
the core refused the new config, the controller stopped the core and left the
rejected setting in the database, so the proxy was down and the next save
reported success while nothing was running.

Snapshot the setting before storing it, and on a reload failure put it back and
restart the core with it. The response now carries INVALID_CONFIG and the
reason the core gave.
2026-09-18 04:54:19 +10:00
Zakk ba85f63f8a fix(gui): centre the tag text again and give the wordmark a phone size
Truncating the navbar tags with display: inline-block blockified them as
flex items, so their text dropped to the baseline instead of the middle of
the pill. Keep Bulma's inline-flex centring and truncate an inner span
(7px above and below the text at every width now). The wordmark stays
40px tall next to them, which crowded the row; 34px below 769px, 26px
below 381px, and below 331px the tags and the menu button take the row.
2026-09-18 04:26:40 +10:00
Zakk 0fab385de6 fix(gui): drop the close-button drop-shadow, keep the burger reachable at 320px
reset.scss put filter: drop-shadow(0 0 5px #000) on every non-hovered
.modal-close, which on the light theme drew a black halo around the glyph.
The brand row is a flex row whose items do not shrink, so below ~400px the
status and proxy-group tags pushed the burger past the right edge and the
menu could not be opened at all; let the tags shrink with an ellipsis and
give the burger a fixed basis. Verified at 320/360/412/480: no horizontal
overflow, the burger is in view and opens the menu.
2026-09-18 04:22:58 +10:00
Zakk 8df17a87d9 fix(gui): burger from the icon set, aligned phone toolbar, darker close glyph
The navbar burger was still Bulma's three spans, the only control not drawn
from the icon set; render it through Buefy's burger slot as the Lucide menu
glyph (x when open) with an aria-label and the expanded state. On phones the
toolbar wrapped into three ragged rows because Bulma's per-field margins
fought the flex layout: stack the two groups as full-width rows with one
0.5rem gap, actions first and create/import right-aligned under them. The
close glyph was 0.55 black on a light head; darken it.
2026-09-18 04:20:12 +10:00
Zakk 9fd4fec854 fix(gui): visible close glyph, one backdrop, a real dropdown in the collapsed menu
The dialog close button drew Bulma's two white bars, invisible on the light
card head; colour them from the text colour (19:1 light, 9.6:1 dark) and add
a hover surface. Four different backdrop values were in the tree, so a light
card sat on a near-black overlay that read as a shadow; keep one value in
App.vue and drop the per-component copies. The core-version notice becomes a
b-notification inside the content column instead of an edge-to-edge message.
In the collapsed navbar the language and account menus were clipped after
one row, because Bulma gives that menu overflow: auto with a max-height;
let it overflow and give the dropdown its own surface, border, shadow and
bounded scroll.
2026-09-18 04:16:50 +10:00
Zakk 1303eb4030 fix(gui): close button on the dialog, menus in the collapsed navbar, visible burger
Bulma positions .modal-close fixed to the viewport, so the close button of
every dialog sat in the corner of the screen instead of the dialog; make it
absolute inside Buefy's .animation-content, which now shrinks to its card.
With mobile-modal dropdowns off, the collapsed navbar's language and
account menus floated over the page; anchor them under their row, capped at
the viewport width with their own scroll. The phone burger was a 3.5rem box
whose bars kept the scaled root font; give it a 48px square and explicit
bars.
2026-09-18 04:10:46 +10:00
Zakk f51c97d1b7 fix(gui): phone dialogs, dropdowns and notices
Buefy turned every dropdown into a centred modal with a backdrop below
769px, so the account and language menus opened as dialogs; the close
button of a dialog is fixed to the viewport while Bulma floats the card
in the middle, so it sat far above the card it closes; repeated clicks on
a failing action stacked a screenful of identical toasts because every
call passed queue: false.

Keep dropdowns as menus on phones, give dialogs the full screen so the
close button lands on the card's top-right corner, and queue notices
(the per-call queue: false is gone). Inline Lucide glyphs are centred on
the text instead of sitting on the baseline, and the brand row keeps px
sizes under 768px, where the root font scales to 0.8em.
2026-09-18 04:05:38 +10:00
Zakk c199dee749 fix(gui): one welcome toast per session, no toast duplicate of the core-version banner
Every load and every remount showed the "service is running" toast, and a
core version mismatch showed twice: the persistent banner in node.vue and
a sticky red toast over it. Show the welcome once per browser session
(again when a new version is found) and leave the mismatch to the banner.
2026-09-18 03:59:41 +10:00