summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichaƂ Bartoszkiewicz <mbartoszkiewicz@gmail.com>2013-01-12 23:05:52 +0100
committerLennart Poettering <lennart@poettering.net>2013-01-15 21:00:11 +0100
commit7d0c710d72f8a6e5c6909c65700aa088c53aebc6 (patch)
treee6a45972731c01aa6c928048ff46e31e29240109 /src
parent244692cbfb46df5ff79d07da8fb848a1165bd2fb (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/core/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/socket.c b/src/core/socket.c
index fcbcdbe192..d75504051b 100644
--- a/src/core/socket.c
+++ b/src/core/socket.c
@@ -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)