NetworkManager/clients/common/tests
Thomas Haller 88756703cf clients: set routing search domain with nameservers when importing WireGuard profile
When the users configure a DNS server on the interface, they likely
want to use it, regardless whether there is a default route on the
device.

For that to work, add an explicit "~" search domain.

Otherwise, by default NetworkManager only adds the special search domain
only on devices that have a "best default route" (nm_ip_config_best_default_route_is).
But that only considers a best default route in the main table, and
WireGuard (with ipx-auto-default-route) adds the default route to a
separate table. The heuristic to determine best devices works not well
with policy routing, so explicitly add this search domain during import.

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/405
2020-04-08 12:33:56 +02:00
..
meson.build license: Add license using SPDX identifiers to meson build files 2020-02-17 13:16:57 +01:00
test-clients-common.c clients: set routing search domain with nameservers when importing WireGuard profile 2020-04-08 12:33:56 +02:00
test-libnm-core-aux.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
wg-test0.conf clients: set routing search domain with nameservers when importing WireGuard profile 2020-04-08 12:33:56 +02:00
wg-test1.conf clients/tests: add wireguard import tests 2019-03-07 22:22:39 +01:00
wg-test2.conf clients/tests: add wireguard import tests 2019-03-07 22:22:39 +01:00
wg-test3.conf clients/tests: add wireguard import tests 2019-03-07 22:22:39 +01:00