mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #4192] [CLOSED] feat(wireguard): add configurable DNS to exported client configs #5622
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#5622
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/4192
Author: @SilverPolarFox
Created: 5/8/2026
Status: ❌ Closed
Base:
main← Head:feat(wireguard)-add-configurable-DNS-to-client-config-export📝 Commits (1)
940e76cfeat(wireguard): add configurable DNS to exported client configs📊 Changes
2 files changed (+17 additions, -3 deletions)
View changed files
📝
web/assets/js/model/inbound.js(+13 -3)📝
web/html/form/protocol/wireguard.html(+4 -0)📄 Description
This change adds configurable DNS support for exported WireGuard client configurations.
Previously, generated WireGuard client configs always used hardcoded Cloudflare DNS values:
1.1.1.1, 1.0.0.1. With this change, the administrator can set a custom DNS server in the WireGuard inbound settings, and that value is saved as part of the inbound configuration.The configured DNS is exported into generated
.conffiles under the[Interface]section asDNS = ..., and is also included in generatedwireguard://links as adnsquery parameter for QR/link-based export. DNS is stored as a shared inbound-level setting.This allows sharing ready-to-use WireGuard client configs via file, QR code, or link without requiring users to manually edit DNS settings on their devices. It is especially useful when the default Cloudflare DNS resolvers are blocked or unreliable, because the administrator can provide an alternative DNS resolver directly in the exported client configuration.
Existing WireGuard settings without a
DNSfield remain compatible and fall back to1.1.1.1, 1.0.0.1.Which part of the application is affected by the change?
Type of Changes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.