From c6a8f6f66da111a417cef7be81ceb9a8f336e541 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 16 Mar 2017 15:52:34 +0900 Subject: resolved: do not start LLMNR or mDNS stack when no network enables them When no network enables LLMNR or mDNS, it is not necessary to create LLMNR or mDNS related sockets. So, let's create them only when LLMNR- or mDNS-enabled network becomes active or at least one network enables `LLMNR=` or `MulticastDNS=` options. --- src/resolve/resolved-manager.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/resolve/resolved-manager.c') diff --git a/src/resolve/resolved-manager.c b/src/resolve/resolved-manager.c index c4e4409fe3..9db8b8f616 100644 --- a/src/resolve/resolved-manager.c +++ b/src/resolve/resolved-manager.c @@ -612,14 +612,6 @@ int manager_start(Manager *m) { if (r < 0) return r; - r = manager_llmnr_start(m); - if (r < 0) - return r; - - r = manager_mdns_start(m); - if (r < 0) - return r; - return 0; } -- cgit v1.2.3-54-g00ecf