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:
parent
e375dcde72
commit
e56f363803
1
TODO
1
TODO
@ -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...
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user