timesyncd: only attempt to connect when an address is configured

For now, we accept both link-local and routable addresses, maybe we want to
restrict ourselves to routable addresses only.
This commit is contained in:
Tom Gundersen
2014-05-19 20:54:42 +02:00
parent e375dcde72
commit e56f363803
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -1070,7 +1070,7 @@ static bool network_is_online(void) {
int r;
r = sd_network_get_operational_state(&state);
if (r >= 0 && streq("carrier", state))
if (r >= 0 && (streq("routable", state) || streq("degraded", state)))
return true;
else
return false;