[PR #3112] [MERGED] refactor: use math.MaxUint16 when checking port #5351

Closed
opened 2026-10-31 20:46:22 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/3112
Author: @sh1shd
Created: 6/17/2025
Status: ✅ Merged
Merged: 6/17/2025
Merged by: @sh1shd

Base: main ← Head: refactor/maxuint16


📝 Commits (1)

  • 2edb766 refactor: use math.MaxUint16 when checking port

📊 Changes

2 files changed (+5 additions, -3 deletions)

View changed files

📝 web/entity/entity.go (+3 -2)
📝 xray/api.go (+2 -1)

📄 Description

What is the pull request?

This pull request changes the hardcoded value (65535) to math.MaxUint16 in the port check

Which part of the application is affected by the change?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

🔄 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/MHSanaei/3x-ui/pull/3112 **Author:** [@sh1shd](https://github.com/sh1shd) **Created:** 6/17/2025 **Status:** ✅ Merged **Merged:** 6/17/2025 **Merged by:** [@sh1shd](https://github.com/sh1shd) **Base:** `main` ← **Head:** `refactor/maxuint16` --- ### 📝 Commits (1) - [`2edb766`](https://github.com/MHSanaei/3x-ui/commit/2edb7663b3342bc74b6573b55c1ad022b03c51e4) refactor: use `math.MaxUint16` when checking port ### 📊 Changes **2 files changed** (+5 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `web/entity/entity.go` (+3 -2) 📝 `xray/api.go` (+2 -1) </details> ### 📄 Description ## What is the pull request? This pull request changes the hardcoded value (65535) to `math.MaxUint16` in the port check ## Which part of the application is affected by the change? - [ ] Frontend - [X] Backend ## Type of Changes - [ ] Bug fix - [ ] New feature - [X] Refactoring - [ ] Other --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:46:22 +07:00
Sign in to join this conversation.
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
MHSanaei/3x-ui#5351
No description provided.