19 Commits
Author SHA1 Message Date
Zakk 7b4ad06e75 fix: reach the core's proxy ports on loopback inside Docker
In Docker, subscription and RoutingA updates through the core dialled
the default gateway instead of 127.0.0.1, a leftover from when the core
ran outside v2rayA's container. The core now runs in v2rayA's own
network namespace and, unless port sharing is on, listens on 127.0.0.1
only. With host networking the gateway is the LAN router, and on a
bridge network the request only came back to the container when port
sharing was on and the port was published, so updates in the "proxy"
and "port rules" modes failed with connection refused.

Fixes #2139
2026-11-17 23:11:30 +11:00
Zakk 833af7dc74 refactor: use what the dependencies already provide
A read of the tree for home-grown code that a dependency or the platform
covers. Each item names what replaces it.

- IPv4 CIDR membership was a binary-string trie (infra/dataStructure/trie)
  fed with CIDRs rendered as bit strings; net.IPNet.Contains, which the
  same file already used for IPv6, does it. The trie package is gone.
- The response replay cache was an LRU with its own linked list, indexes
  and timeout strategy (infra/dataStructure/lru), of which one fixed-size
  instance existed; hashicorp/golang-lru/v2, already in go.mod, is that
  cache, typed. go mod tidy also dropped go-nanoid, which nothing imported.
- The HTTP client for subscription updates through the local proxy carried
  a CONNECT dialer of its own (pkg/util/proxyWithHttp); http.Transport's
  Proxy handles socks5:// and http:// URLs, resolves hostnames on the
  SOCKS proxy and uses CONNECT for https. Verified on the VM: a
  subscription update succeeds in both "pac" and "proxy" modes.
- core/dns/qtype.go listed nine type names in two switches before falling
  back to miekg/dns tables that contain the same names; dns.Type.String
  and dns.StringToType are the tables.
- The GUI tracked prefers-color-scheme with its own media query and
  toggled a theme-dark class nothing reads any more; Vuetify's "system"
  theme follows the OS itself. Verified in headless Chrome: auto follows
  the OS in both directions, an explicit choice overrides it.
- The AUR packages carried .INSTALL hooks whose only content was a
  coloured "Completed!" banner, duplicated in the deb/rpm after-install
  scripts; pacman and apt report that themselves. The hooks are gone, the
  release workflow stops copying them, and after_install/after_upgrade
  keep only daemon-reload and the restart.
- The tap release job downloaded eight artifacts in eight steps;
  actions/download-artifact takes a pattern with merge-multiple.
2026-09-20 16:40:34 +10:00
Markson Joe Hon 47f1462baf feat: init a new for v2raya core and fix a firewall mistake 2026-07-02 13:10:12 +08:00
mzz2017 18dcfd94f9 fix: not delete tables rules after http test 2023-03-30 20:54:02 +08:00
mzz2017 b02666bd19 optimize: remove gopeed to avoid 429 2022-03-13 18:05:24 +08:00
mzz2017 1eafeef243 feat(macOS,windows): support system proxy. Thanks @Johnshall #338 2022-01-25 21:18:24 +08:00
mzz2017 367b15d119 feat: support print connection report 2021-09-24 23:11:42 +08:00
mzz2017 159c542272 fix(transparent proxy): conflict mark 2021-09-07 22:21:37 +08:00
mzz2017 e4dd0eaa76 refactor: server, subscription, api, plugin 2021-09-06 12:32:47 +08:00
mzz2017 0d16bd32a7 feat: organize project structure, change log package to beego log and remove v2ray/log package 2021-08-27 14:09:08 +08:00
mzz2017 58250f9cce feat: multiple outbounds, keep latency results, routing log #214 2021-07-31 11:42:13 +08:00
mzz2017 d34ba11db9 refactor/feat: universal mode by default; try using xray first but v2ray recommended.
support param --v2ray-confdir #122
support param --v2ray-bin
v2rayA will not control v2ray by systemd but subprocess way
2020-12-23 20:06:21 +08:00
mzz2017 79b56345c6 docs: remove mzz2017 in most files due to repo's transfer 2020-10-16 16:43:08 +08:00
mzz2017 ecf74fc945 feat: support cutomizing dns servers 2020-06-06 23:25:12 +08:00
mzz2017 272e734ccd optimize: switch storage source from json to nutsdb 2020-06-06 03:29:53 +08:00
mzz2017 1e230ed1fd some fixes and features
1. use http://www.alibaba.com instead of https://www.youtube.com to test more accurate latency
2. now will report transparent proxy error
3. shorter timeout of closing SSR
4. optional enhanced mode and closed dns anti-pollution
5. use another port for transparent proxy instead of 12345
6. some other adjustments
2020-05-12 13:10:56 +08:00
mzz2017 b2de124709 rename project 2020-04-19 03:30:00 +08:00
mzz2017 fb2a5226d1 test: log system 2020-03-31 13:48:11 +08:00
mzz2017 7e240e3cf8 optimize: performance 2020-03-22 22:31:33 +08:00