[PR #3612] [MERGED] fix: add missing is_domain helper function to x-ui.sh #5486

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

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/3612
Author: @Wyatt1026
Created: 12/28/2025
Status: ✅ Merged
Merged: 12/28/2025
Merged by: @MHSanaei

Base: main ← Head: main


📝 Commits (1)

  • fb6807a fix: add missing is_domain helper function to x-ui.sh

📊 Changes

1 file changed (+14 additions, -0 deletions)

View changed files

📝 x-ui.sh (+14 -0)

📄 Description

What is the pull request?

The is_domain function was being called in ssl_cert_issue() in x-ui.sh but was never defined, causing "[ERR] Invalid domain format" errors even when users enter valid domain names.

This bug was introduced in commit 75aed7f (PR #3611 - Self-signed SSL).

Fix: Added the missing helper functions (is_ipv4, is_ipv6, is_ip, is_domain) to x-ui.sh, matching the definitions already present in install.sh and update.sh.

Which part of the application is affected by the change?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

Screenshots

Not applicable - this is a shell script fix with no UI changes.


🔄 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/3612 **Author:** [@Wyatt1026](https://github.com/Wyatt1026) **Created:** 12/28/2025 **Status:** ✅ Merged **Merged:** 12/28/2025 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`fb6807a`](https://github.com/MHSanaei/3x-ui/commit/fb6807a8f6044a6d857198db239833eb44e0d688) fix: add missing is_domain helper function to x-ui.sh ### 📊 Changes **1 file changed** (+14 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `x-ui.sh` (+14 -0) </details> ### 📄 Description ## What is the pull request? The is_domain function was being called in ssl_cert_issue() in x-ui.sh but was never defined, causing "[ERR] Invalid domain format" errors even when users enter valid domain names. This bug was introduced in commit 75aed7f (PR #3611 - Self-signed SSL). Fix: Added the missing helper functions (is_ipv4, is_ipv6, is_ip, is_domain) to x-ui.sh, matching the definitions already present in install.sh and update.sh. ## Which part of the application is affected by the change? - [ ] Frontend - [x] Backend ## Type of Changes - [x] Bug fix - [ ] New feature - [ ] Refactoring - [ ] Other ## Screenshots Not applicable - this is a shell script fix with no UI changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:47:17 +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#5486
No description provided.