3x-ui/web/html/form/protocol
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
..
dokodemo.html fix(security): sanitize remote IP headers and escape log viewer output 2026-05-04 16:39:29 +02:00
http.html TLS: Remove ECH Force Query 2026-05-04 13:20:24 +02:00
hysteria.html fix(security): sanitize remote IP headers and escape log viewer output 2026-05-04 16:39:29 +02:00
shadowsocks.html fix(security): sanitize remote IP headers and escape log viewer output 2026-05-04 16:39:29 +02:00
socks.html TLS: Remove ECH Force Query 2026-05-04 13:20:24 +02:00
trojan.html refactor(fallbacks): share template, tighter UX, cleaner JSON 2026-05-07 20:27:34 +02:00
tun.html fix(tun): use single mtu number per Xray spec 2026-05-07 19:50:47 +02:00
vless.html refactor(fallbacks): share template, tighter UX, cleaner JSON 2026-05-07 20:27:34 +02:00
vmess.html fix(security): sanitize remote IP headers and escape log viewer output 2026-05-04 16:39:29 +02:00
wireguard.html feat(wireguard): add configurable DNS to exported client configs 2026-05-08 19:12:36 +03:00