mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 16:30:07 +01:00
WireGuard's wg-quick primarily wants to avoid DNS leaks, and thus also our import code should generate profiles that configure exclusive DNS servers. This is done by setting "ipv[46].dns-priority" to a negative value. Note that if a profile leaves the DNS priority at zero (which in many regard is the default), then the zero translates to 50 (for VPN profiles) and 100 (for other profiles). Instead of setting the DNS priority to -10, set it to -50. This gives some more room so that the user can choose priorities that are worse than the WireGuard's one, but still negative (exclusive). Also, since the positive range defaults to 50 and 100, let's stretch the range a bit. Since this only affects import and creation of new profiles, such a change in behavior seems acceptable. |
||
|---|---|---|
| .. | ||
| cli | ||
| cloud-setup | ||
| common | ||
| tests | ||
| tui | ||
| meson.build | ||
| nm-online.c | ||