#2066·v2rayA

Sort nodes by latency, select/remove nodes that fail the latency test, and add Iran to the bypassed countries

Author: mojtaba13133Created Sep 29, 2026Updated Oct 1, 2026
Labelsenhancement

v2rayA version

2.5.7

The problem

I manage several hundred nodes, mostly from subscriptions. After running a latency test, I want to keep the fastest working nodes and get rid of the dead ones. Two things prevent this:

  1. The node list cannot be sorted by the measured latency, so finding the fastest working nodes means scrolling through the entire list.
  2. Nodes that failed or timed out stay in the list and have to be found and deleted by hand. With hundreds of nodes this is impractical.

While cleaning up failed nodes manually, I also hit a bulk-deletion bug: #

In addition, Iran is not available among the countries whose IP ranges and domains can be excluded from the proxy (routed directly). For users in Iran, domestic sites and services must bypass the proxy. Many Iranian services block or throttle foreign IPs, and proxying domestic traffic wastes bandwidth. Currently this requires writing custom RoutingA rules and supplying external geo files by hand.

Proposal

1. Sort by latency

  • Make the latency column in the node list and subscription node lists sortable (ascending/descending).
  • Always place failed or timed-out nodes at the end, regardless of sort direction.
  • Optionally, remember the chosen sort order.

2. Select or remove failed nodes

In the node list toolbar, next to the existing latency test and delete actions:

  • Select failed nodes: a button that selects every node whose last latency test failed or timed out. The user can review the selection and delete it with the existing bulk delete. This is the minimal, safe option.
  • Auto-remove (optional, off by default): a setting that deletes nodes failing the latency test, optionally only after N consecutive failures so nodes that are temporarily unreachable are not removed.

For subscription nodes, deleted nodes may come back on the next subscription update. Either an option to skip them on update, or a note in the UI explaining this, would avoid confusion.

3. Add Iran to the bypassed countries

Add Iran to the list of countries whose traffic can be routed directly, using the geo data from Chocolate4U/Iran-v2ray-rules (GPL-3.0, published as regular v2ray/xray .dat files):

  • geoip:ir: Iranian IP ranges from MaxMind and IP2Location, plus the IP ranges of Iranian messengers and domestic CDNs (ArvanCloud, Derak Cloud, IranServer, ParsPack). Generic country databases usually miss the CDN ranges, which is why this source works better than a plain MaxMind-based geoip:ir.
  • geosite:ir: Iranian domains outside the .ir TLD (.com, .net, etc.) plus a rule covering all .ir domains.

Download URLs (release branch, also mirrored on jsDelivr):

  • https://raw.githubusercontent.com/Chocolate4U/Iran-v2ray-rules/release/geoip.dat
  • https://raw.githubusercontent.com/Chocolate4U/Iran-v2ray-rules/release/geosite.dat
  • Smaller variants containing only the Iran and private categories: geoip-lite.dat, geosite-lite.dat

The upstream project documents the equivalent core routing as geosite:ir → direct and geoip:ir + geoip:private → direct, which maps directly onto the existing country-bypass behavior.

How other clients solve this

v2rayN, for example, lets the server list be sorted by test result and has an action to remove servers with invalid test results. For the Iran rules, the upstream repository also provides routing presets for v2rayN.

Human responsible for this request

@mojtaba13133

Confirm

  • I searched the existing issues, pull requests and discussions; I found none proposing this.
  • I checked the boxes above without reading them.
  • I am an AI agent, and this content was submitted without human review.
  • I am willing to open a pull request for this.