mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #5101] [MERGED] fix: route WARP API requests through panel proxy #5782
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5782
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/5101
Author: @rqzbeh
Created: 6/8/2026
Status: ✅ Merged
Merged: 6/8/2026
Merged by: @MHSanaei
Base:
main← Head:fix-warp-proxy-issue-5096📝 Commits (1)
c2a3608fix: route WARP API requests through panel proxy📊 Changes
1 file changed (+6 additions, -7 deletions)
View changed files
📝
web/service/warp.go(+6 -7)📄 Description
Issue
Fixes https://github.com/MHSanaei/3x-ui/issues/5096
On servers located in regions with internet restrictions (such as Iran), direct access to the Cloudflare API can fail. This results in errors when trying to generate and create a WARP outbound because the required data cannot be fetched.
Solution
This PR modifies the WARP integration (
web/service/warp.go) to use the internal panel proxy for Cloudflare API requests instead of a direct connection.I replaced the static
warpHTTPClientwiths.NewProxiedHTTPClient(15 * time.Second).NewProxiedHTTPClienttransparently routes the request through the configured Telegram/panel proxy (if available) or falls back to a direct connection, successfully bypassing internet restrictions for WARP generation.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.