chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
timesyncd: only attempt to connect when an address is configured
[elogind.git]
/
src
/
timesync
/
timesyncd.c
diff --git
a/src/timesync/timesyncd.c
b/src/timesync/timesyncd.c
index 6e63e34d876a30fa0d7ae39ecb12e3c0c7073ca6..6dcd942ec12fc968b644f19dcc4b7fb73d25632d 100644
(file)
--- a/
src/timesync/timesyncd.c
+++ b/
src/timesync/timesyncd.c
@@
-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;