mirror of
https://github.com/systemd/systemd.git
synced 2025-03-14 04:58:28 +03:00
core: do not make sockets dependent on lo
/sys/subsystem/net/devices/lo is never considered active, so sockets with BindToDevice=lo would never be activated.
This commit is contained in:
parent
244692cbfb
commit
7d0c710d72
@ -308,7 +308,7 @@ static int socket_add_device_link(Socket *s) {
|
||||
|
||||
assert(s);
|
||||
|
||||
if (!s->bind_to_device)
|
||||
if (!s->bind_to_device || streq(s->bind_to_device, "lo"))
|
||||
return 0;
|
||||
|
||||
if (asprintf(&t, "/sys/subsystem/net/devices/%s", s->bind_to_device) < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user