1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

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:46:54 +02:00
parent e375dcde72
commit e56f363803
2 changed files with 1 additions and 2 deletions

1
TODO
View File

@ -40,7 +40,6 @@ Features:
* timesyncd:
- hookup with networkd: NTP servers from dhcp
- hookup with networkd: listen to online/offline state
* a way for container managers to turn off getty starting via $container_headless= or so...

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;