mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-20 03:40:47 +02:00
dns: add FIXME comment about adding default "~" routing search domain
This commit is contained in:
parent
88756703cf
commit
9a74d2e023
1 changed files with 5 additions and 0 deletions
|
|
@ -1321,6 +1321,11 @@ rebuild_domain_lists (NMDnsManager *self)
|
|||
* If there is no default route, add the wildcard domain to all non-VPN
|
||||
* connections */
|
||||
if (default_route_found) {
|
||||
/* FIXME: this heuristic of which device has a default route does
|
||||
* not work with policy routing (as used by default with WireGuard).
|
||||
* We should have a more stable mechanism where an NMIPConfig indicates
|
||||
* whether it is suitable for certain operations (like having an automatically
|
||||
* added "~" domain). */
|
||||
if (nm_ip_config_best_default_route_get (ip_config))
|
||||
domains[num_dom1++] = "~";
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue