From ac216c130e5d1f1c86d7e481838748208bb68f73 Mon Sep 17 00:00:00 2001 From: "Marc A. Dahlhaus" Date: Fri, 1 Apr 2011 13:26:31 -0700 Subject: Fix bug #8047 - mdns registration doesn't work if "interfaces" is used in smb.conf Autobuild-User: Jeremy Allison Autobuild-Date: Fri Apr 1 23:15:34 CEST 2011 on sn-devel-104 --- source3/smbd/server.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source3/smbd/server.c b/source3/smbd/server.c index e9332c1f14..1948077c1f 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -681,6 +681,13 @@ static bool open_sockets_smbd(struct smbd_parent_context *parent, continue; } + /* Keep the first port for mDNS service + * registration. + */ + if (dns_port == 0) { + dns_port = port; + } + if (!smbd_open_one_socket(parent, ifss, port)) { return false; } -- cgit