[PR #22] Limit VLESS UUID to one active IP #25

Open
opened 2026-10-13 21:11:00 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amnezia-xray-core/pull/22
Author: @FrogRocky
Created: 8/17/2026
Status: 🔄 Open

Base: master ← Head: frog/vless-single-active-ip


📝 Commits (1)

  • 14593bb feat(vless): enforce one active IP per UUID

📊 Changes

4 files changed (+765 additions, -1 deletions)

View changed files

➕ proxy/vless/inbound/connection_tracker.go (+160 -0)
➕ proxy/vless/inbound/connection_tracker_integration_test.go (+128 -0)
➕ proxy/vless/inbound/connection_tracker_test.go (+454 -0)
📝 proxy/vless/inbound/inbound.go (+23 -1)

📄 Description

A VLESS UUID can now stay active from one IP at a time.

When the same UUID connects from a new IP, existing TCP connections from the previous IP are reset. Multiple connections from the same IP keep working.

Tested with VLESS TCP/REALITY and a Linux TCP RST integration test.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/amnezia-vpn/amnezia-xray-core/pull/22 **Author:** [@FrogRocky](https://github.com/FrogRocky) **Created:** 8/17/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `frog/vless-single-active-ip` --- ### 📝 Commits (1) - [`14593bb`](https://github.com/amnezia-vpn/amnezia-xray-core/commit/14593bb521b571a2fef3ba4e9e92901e1e463e7b) feat(vless): enforce one active IP per UUID ### 📊 Changes **4 files changed** (+765 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `proxy/vless/inbound/connection_tracker.go` (+160 -0) ➕ `proxy/vless/inbound/connection_tracker_integration_test.go` (+128 -0) ➕ `proxy/vless/inbound/connection_tracker_test.go` (+454 -0) 📝 `proxy/vless/inbound/inbound.go` (+23 -1) </details> ### 📄 Description A VLESS UUID can now stay active from one IP at a time. When the same UUID connects from a new IP, existing TCP connections from the previous IP are reset. Multiple connections from the same IP keep working. Tested with VLESS TCP/REALITY and a Linux TCP RST integration test. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-xray-core#25
No description provided.