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:
Michał Bartoszkiewicz 2013-01-12 23:05:52 +01:00 committed by Lennart Poettering
parent 244692cbfb
commit 7d0c710d72
1 changed files with 1 additions and 1 deletions

View File

@ -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)