mirror of
https://github.com/systemd/systemd.git
synced 2025-01-27 18:04:05 +03:00
resolvectl: fix older resolved or networkd support to set DNS servers
Fixes #16573.
This commit is contained in:
parent
e128723dae
commit
f527c6fa08
@ -1969,8 +1969,10 @@ static int call_dns(sd_bus *bus, char **dns, const BusLocator *locator, sd_bus_e
|
||||
return bus_log_create_error(r);
|
||||
|
||||
r = sd_bus_call(bus, req, 0, error, NULL);
|
||||
if (r < 0 && extended && sd_bus_error_has_name(error, SD_BUS_ERROR_UNKNOWN_METHOD))
|
||||
if (r < 0 && extended && sd_bus_error_has_name(error, SD_BUS_ERROR_UNKNOWN_METHOD)) {
|
||||
sd_bus_error_free(error);
|
||||
return call_dns(bus, dns, locator, error, false);
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user