1894 Commits
Author SHA1 Message Date
Markson Hon 69826978c3 Merge pull request #1956 from v2rayA/main
Fix TUIC URL parsing to use decoded user password
v2.4.20
2026-09-16 18:35:01 +08:00
Markson GuGa Beyond 9b0465e57b fix: use u.User.Password() instead of u.User.String() in TUIC URL parsing
u.User.String() returns URL-encoded userinfo, causing the password to be
incorrectly stored when it contains special characters like '/'. For
example, a password of '/' would be stored as '%2F'.

Switch to u.User.Password() which returns the decoded password directly,
consistent with how juicity, hysteria2, http, and socks5 handle it.
2026-09-16 18:25:39 +08:00
Markson Pigeonzilla Plus 3fd0e88222 fix(import): treat http(s) links as server links instead of subscriptions
Add 'http' and 'https' to supported prefixes in Import() so HTTP/HTTPS links are recognized as server links rather than subscriptions. Prevents single http://... nodes from being stored as subscriptions.
v2.4.19
2026-09-12 17:34:06 +08:00
Markson Hon 4bc93252c2 Merge pull request #1953 from jkh0kr/main
Add Korean
v2.4.18
2026-09-09 12:46:12 +08:00
jkh0kr 4ee71f3e90 Add Korean language option to language list
Signed-off-by: jkh0kr <admin@jkh.kr>
2026-09-09 13:31:59 +09:00
Markson Hon 71e5442fc5 ci: update tinytun to v0.0.3-alpha.3 for Windows installers 2026-09-05 07:32:52 +08:00
Markson Hon d25664728c Merge pull request #1951 from fengexian-c/fix/custom-inbound-outbounds-endpoint
fix(gui): load outbound groups for custom inbound
v2.4.17
2026-09-04 18:34:04 +08:00
jkh0kr 0c4d5b57a1 Add Korean language support to locales
Signed-off-by: jkh0kr <admin@jkh.kr>
2026-09-04 17:44:07 +09:00
jkh0kr 541c595efb Add Korean localization for application
Signed-off-by: jkh0kr <admin@jkh.kr>
2026-09-04 17:42:59 +09:00
fengexian-c 8288bf3bea fix(gui): load outbound groups for custom inbound
Fix the empty Bound outbound selector by requesting the outbound group list from /api/outbounds.

Signed-off-by: fengexian-c <127767883+fengexian-c@users.noreply.github.com>
2026-09-04 15:00:12 +08:00
Markson Hon d70b594be1 Merge pull request #1947 from xuweizhi/fix/transparent-proxy-dns-redirect-and-ecs
fix: transparent proxy startup failure and DNS bootstrap deadlock
v2.4.16
2026-08-26 19:52:32 +08:00
xuweizhi e6ab3f92eb fix(core/dns): only attach ECS for global unicast client addresses
RFC 7871 requires that non-globally-routable client addresses are not
sent as EDNS Client Subnet. Sending ECS with loopback/private addresses
(e.g. 127.0.0.1 from the local listeners) breaks split-horizon zones:
AliDNS returned only the CNAME without the target A record for such
queries, so Cloudflare-fronted proxy servers could never be resolved.
2026-08-26 19:39:27 +08:00
xuweizhi 8e943af4cb fix(dns): resolve proxy server domains via a direct upstream
Proxy server domains previously fell through to the default (proxy)
upstream: the upstream query is dispatched through the proxy outbound,
but dialing the proxy outbound itself requires resolving the server
domain, creating a circular dependency that left the proxy channel
unusable ("dns read length via dispatcher: io: read/write on closed
pipe").

Generate a highest-priority DNS module rule matching all node server
hostnames against a dedicated direct upstream (system DNS when
available). The upstream is prepended, not appended, because the module
treats the last non-bootstrap upstream as the default.
2026-08-26 19:39:22 +08:00
xuweizhi 22856c189a fix(iptables): add protocol to DNS_REDIRECT redirect rules
iptables requires -p tcp or -p udp when using the REDIRECT target with
--to-port. The generated rule lacked the protocol match, so on legacy
iptables the command failed with "Need TCP, UDP, SCTP or DCCP with port
specification", aborting transparent proxy startup entirely.
2026-08-26 19:39:17 +08:00
Markson Hon 9513a51956 Merge pull request #1918 from haotiangood/main
fix(webui): cannot save node configuration changes
v2.4.15
2026-08-24 18:51:10 +08:00
Markson Hon 4087b9d0a9 Merge pull request #1945 from rinkulu/fix-gui-vless-config
fix(gui): Fix issues with saving a manual VLESS configuration
2026-08-24 18:50:45 +08:00
rinkulu c8d390bc6b fix(gui): validate manual VLESS config before saving 2026-08-23 23:06:59 +03:00
rinkulu dce405bdfa chore(build): fix bash build script 2026-08-23 23:06:59 +03:00
rinkulu 1fd0e1898b fix(gui): fix saving of manual configuration for VLESS servers 2026-08-23 23:06:59 +03:00
Markson Pigeonzilla Plus 3138f506b7 fix(ci): rewrite import SSH key 2026-08-22 15:35:42 +08:00
Markson Pigeonzilla Plus 9a16fc9fe2 fix(ci): aur v2raya package not needed update sha256 2026-08-22 15:14:34 +08:00
Markson Pigeonzilla Plus 36d19aa141 fix(ci): add ssh config for AUR release 2026-08-22 15:01:16 +08:00
Markson Pigeonzilla Plus 3c72d6fc33 fix(ci): try to fix add ssh key 2026-08-22 12:43:55 +08:00
Markson Pigeonzilla Plus ef37dcc407 fix(ci): commit should be to all included file 2026-08-22 12:03:16 +08:00
Markson Pigeonzilla Plus 6069f8b687 fix(ci): disable refresh Cloudflare for v2raya.org is down 2026-08-22 11:50:09 +08:00
Markson Pigeonzilla Plus 60017cf264 fix(ci): AUR should use SSH key but not GPG key v2.4.14 2026-08-22 11:32:36 +08:00
Markson Pigeonzilla Plus ef8e85031c fix(ci): fix v2raya-bin's missing data file 2026-08-22 11:25:21 +08:00
Markson Pigeonzilla Plus dcb7596435 ci: run updpkgsums with non-root user in podman container v2.4.13 2026-08-22 09:37:24 +08:00
Markson Pigeonzilla Plus b7da452276 ci: re-init AUR release v2.4.12 2026-08-22 09:02:48 +08:00
Markson Hon b043120363 Merge pull request #1940 from xuweizhi/fix/listget-sub-id
fix(db): use subscription id instead of index+1 to fetch servers in ListGet
2026-08-19 20:36:36 +08:00
xuweizhi ea96763911 fix(db): use subscription id instead of index+1 to fetch servers in ListGet 2026-08-19 20:25:31 +08:00
Markson Hon c17d087127 Merge pull request #1938 from v2rayA/main
ci: fix a typo from AI's auto completion
2026-08-18 22:31:11 +08:00
Markson Hon e185ac0691 ci: fix pull_request.yml 2026-08-18 22:25:11 +08:00
Markson Hon 1f33e05dff Merge pull request #1754 from fumiama/main
ci: support mips softfloat
2026-08-18 21:43:58 +08:00
Markson Hon 81f82e799b Merge branch 'main' into main
Signed-off-by: Markson Hon <50002150+MarksonHon@users.noreply.github.com>
2026-08-18 21:43:32 +08:00
Markson Hon fbd5cc2c11 ci: pr builds should include core 2026-08-18 21:41:28 +08:00
Markson Hon 6c27cc2c1d Merge pull request #1933 from xAlokyx/agent/reduce-geoip-parser-memory
fix: reduce GeoIP parser memory usage
2026-08-18 21:34:52 +08:00
Markson Hon 15b45924b8 Merge pull request #1934 from zhangthree78/fix/dns-loop-memory-blowup
fix: prevent DNS redirect loop causing unbounded memory growth and DNS failure on proxy stop
2026-08-18 21:21:33 +08:00
Markson Hon e3150af5bc Merge pull request #1931 from miaomiaoyaoqimiaomaoxian/fix/preserve-core-state-on-restart
fix: preserve core state across graceful restarts
2026-08-18 21:17:15 +08:00
zhangthree78 daa5d69261 fix(dns): make marked-client Control assertions platform-specific
Review (goal verification) found that socket_test.go asserted
Dialer.Control != nil without build tags, so 'go test ./core/dns/'
fails on Windows where markedDialer() deliberately omits Control
(SO_MARK is a Linux-only option; markFd is a no-op there).

Move the Control assertions to socket_unix_test.go (//go:build !windows);
socket_test.go keeps the platform-neutral assertions (Net/UDPSize/timeouts/
Dialer non-nil). Verified: Linux go build + go test all pass, and
GOOS=windows go vet compiles the test files cleanly.
2026-08-17 01:01:15 +08:00
zhangthree78 734792cfc2 fix: complete per-query log gating, clean residual DNS rules on stop, dedupe marked client
Follow-up review of 525654e found:

1. Log gating was incomplete: only the direct/route path was gated;
   cache-hit/cache-miss, proxy and dispatcher per-query logs were still
   unconditional log.Printf (the hottest paths under load). Gate them
   behind V2RAYA_DNS_DEBUG=1 too; error logs stay visible.

2. Stopping the transparent proxy left the direct nat OUTPUT/PREROUTING
   REDIRECT --to-port 52353 rules and the fwmark 0x80 exemption rules in
   place (Tproxy/Redirect GetCleanCommands only clean their own chains).
   Once the DNS module exits, local DNS queries hit a dead port and DNS
   fails. Add cleanDnsRedirectRules() and run it on the normal stop path.

3. module.go bootstrap client inlined its own markFd + marked dialer;
   reuse newMarkedDnsClient (keeping the 3s fail-fast timeout).

4. dnsLogf/dnsDebugEnabled were duplicated in socket_unix.go /
   socket_windows.go; move them to a common debug.go.

5. No unit tests for newMarkedDnsClient; add tests asserting
   Net/UDPSize/Timeout and a non-nil Dialer.Control.

Verified: go build ./dns/... ./kernel/v2ray/... ; go test ./dns/...
2026-08-17 00:49:48 +08:00
zhangthree78 dc40c97264 chore: ignore local artifacts and agent state in .gitignore
- ignore .omo/ (local agent state), /release/ (built binaries, PR
  materials), /service/web/ (generated web assets), and
  gui/package-lock.json (project uses yarn.lock; the npm lockfile is
  an accidental artifact)
- fix mangled entry 'service\core\v2ray\CORE_CONFIGURATION.mdplans'
  (missing newline; also correct the path separator)
2026-08-16 23:59:58 +08:00
zhangthree78 525654ec9b fix: prevent DNS redirect loop causing unbounded memory growth
Fixes defects in the v2.4.8+ transparent-proxy DNS path that cause the
core to exhaust memory within seconds on low-RAM hosts (see discussion
#1915: '2.4.9 内存占用过高' / '有严重的内存泄漏,别用了。本地DNS完全废掉了'):

1. core/dns: upstream queries from NewUpstreamManager /
   GetOrCreateUpstream / getClientForProtocol used bare &dns.Client{}
   with no Dialer configured, so their sockets never carried
   SO_MARK=0x80. The unmarked queries were hijacked by the module's own
   transparent-proxy DNS redirect rules and looped back into :52353 —
   an infinite self-query loop and memory snowball.

2. service/kernel/v2ray/transparent.go: the unconditional DNS hijack
   rules (REDIRECT --to-port 52353) had no fwmark-0x80 exemption, and
   being inserted with -I they sat at the head of nat OUTPUT/PREROUTING,
   so marked traffic was looped back as well.

3. core/dns: per-query info logging (query/route/upstream) produced
   thousands of lines/second under load, amplifying CPU/IO/memory
   pressure.

Fix:
- Route every upstream client through newMarkedDnsClient, whose
  net.Dialer sets SO_MARK=0x80 on all sockets. miekg/dns dials UDP
  through net.Dialer too, so Dialer.Control covers UDP sockets — no
  manual socket path is needed. UDPSize=4096 keeps a sane receive
  buffer for queries without an EDNS0 OPT record.
- Append the DNS redirects with -A and insert the mark exemption with
  -I so the exemption is matched first; also delete the exemption
  rules in the residual-rule cleanup so they don't accumulate across
  restarts.
- redirect mode: insert the DNS_REDIRECT jumps after the TP_PRE/TP_OUT
  jumps so they actually take precedence (-I inserts at chain head),
  keeping local and LAN TCP DNS flowing to the DNS module (:52353)
  instead of the proxy inbound (:52345).
- Gate per-query info logs behind V2RAYA_DNS_DEBUG=1; error logs stay
  always visible.

Verified: unpatched v2.4.11 core RSS 230MB->1GB in ~6s then OOM/hang;
patched build stable at ~25MB idle / ~243MB loaded, DNS and SOCKS proxy
working.
2026-08-16 23:59:43 +08:00
ALOKY bea993880c test incremental GeoIP parsing
Cover early exit, fake-IP filtering, IPv6 output, and malformed data.

Signed-off-by: ALOKY <ajm1055@uomustansiriyah.edu.iq>
2026-08-16 15:35:44 +03:00
ALOKY 43b6e55b67 reduce GeoIP parser memory usage
Decode one GeoIP entry at a time and cache successful results.

Signed-off-by: ALOKY <ajm1055@uomustansiriyah.edu.iq>
2026-08-16 15:34:30 +03:00
Codex contributor 8d11cdb6ca fix: preserve core state across graceful restarts 2026-08-14 18:57:12 +08:00
Markson Pigeonzilla Plus 1550d843d0 fix(gui): drop xtls option and treat v2raya_core as xray variant v2.4.11 2026-08-11 21:59:44 +08:00
Markson Pigeonzilla Plus f3249f6346 fix: normalize vmess:// payload field types on export and import 2026-08-11 21:59:42 +08:00
Markson Pigeonzilla Plus e363546bf1 fix: normalize peer cert pin to lowercase hex for xray-core pinnedPeerCertSha256 2026-08-11 21:59:39 +08:00
Markson Pigeonzilla Plus 3d86c775a5 feat: add shared cert-chain pinning helpers for native protocols 2026-08-11 21:59:36 +08:00