3x-ui/web/html
SilverPolarFox 940e76ca43 feat(wireguard): add configurable DNS to exported client configs
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 `.conf` files under the `[Interface]` section as `DNS = ...`, and is also included in generated `wireguard://` links as a `dns` query parameter for QR/link-based export.
DNS is intentionally 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 `DNS` field remain compatible and fall back to `1.1.1.1, 1.0.0.1`.
2026-05-08 19:12:36 +03:00
..
common Implement CSRF protection and security hardening across the application (#4179) 2026-05-07 23:36:11 +02:00
component fix design 2026-05-06 17:12:08 +02:00
form feat(wireguard): add configurable DNS to exported client configs 2026-05-08 19:12:36 +03:00
modals fix(warp): harden API client and frontend, bump to v0a4005 2026-05-08 09:29:42 +02:00
settings outbound: mobile style 2026-05-06 13:27:40 +02:00
inbounds.html fix: filter view in mobile 2026-05-06 14:45:46 +02:00
index.html feat(custom-geo): refresh index UI 2026-05-08 10:09:33 +02:00
login.html fix(security): sanitize remote IP headers and escape log viewer output 2026-05-04 16:39:29 +02:00
settings.html fix(security): sanitize remote IP headers and escape log viewer output 2026-05-04 16:39:29 +02:00
xray.html outbound: mobile style 2026-05-06 13:27:40 +02:00