diff options
author | Tom Gundersen <teg@jklm.no> | 2014-05-19 20:46:54 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-05-19 20:54:42 +0200 |
commit | e56f36380365b5825f0920b0f00a459edc0b2e84 (patch) | |
tree | ece5879b4366677ddae5263f9de23539fcc77f4c /src | |
parent | e375dcde7202d5df4e29f5258e0f8c2bcea4535c (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/timesync/timesyncd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timesync/timesyncd.c b/src/timesync/timesyncd.c index 6e63e34d87..6dcd942ec1 100644 --- 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; |