chiark / gitweb /
timesyncd: only attempt to connect when an address is configured
[elogind.git] / src / timesync / timesyncd.c
index 6e63e34d876a30fa0d7ae39ecb12e3c0c7073ca6..6dcd942ec12fc968b644f19dcc4b7fb73d25632d 100644 (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;