mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-27 01:55:32 +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:
|
* timesyncd:
|
||||||
- hookup with networkd: NTP servers from dhcp
|
- 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...
|
* 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;
|
int r;
|
||||||
|
|
||||||
r = sd_network_get_operational_state(&state);
|
r = sd_network_get_operational_state(&state);
|
||||||
if (r >= 0 && streq("carrier", state))
|
if (r >= 0 && (streq("routable", state) || streq("degraded", state)))
|
||||||
return true;
|
return true;
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user