summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-11-05 11:41:09 +0100
committerVolker Lendecke <vlendec@samba.org>2010-11-05 11:24:41 +0000
commitf2456cd5425b4d006cf35df9dc724d040558e0d6 (patch)
treeec447065f1d46816836108526783cb80f314e890 /source3/smbd
parentac3f8d859d1ab8b1bb9d41c465dd10499151a8c4 (diff)
downloadsamba-f2456cd5425b4d006cf35df9dc724d040558e0d6.tar.gz
samba-f2456cd5425b4d006cf35df9dc724d040558e0d6.tar.bz2
samba-f2456cd5425b4d006cf35df9dc724d040558e0d6.zip
s3: Allow disabling of mdns registrations
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Nov 5 11:24:41 UTC 2010 on sn-devel-104
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index dd3ae3a730..c30b344e45 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -739,7 +739,7 @@ static bool open_sockets_smbd(struct smbd_parent_context *parent,
msg_inject_fault);
#endif
- if (dns_port != 0) {
+ if (lp_multicast_dns_register() && (dns_port != 0)) {
#ifdef WITH_DNSSD_SUPPORT
smbd_setup_mdns_registration(smbd_event_context(),
parent, dns_port);