diff options
author | Marc A. Dahlhaus <mad@wol.de> | 2011-04-01 13:26:31 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-04-01 23:15:33 +0200 |
commit | ac216c130e5d1f1c86d7e481838748208bb68f73 (patch) | |
tree | 43339e4e312e5e3df0965702fdb392c7966dd1aa | |
parent | 1272758f8f989647802ea90722661ab133efa83f (diff) | |
download | samba-ac216c130e5d1f1c86d7e481838748208bb68f73.tar.gz samba-ac216c130e5d1f1c86d7e481838748208bb68f73.tar.xz samba-ac216c130e5d1f1c86d7e481838748208bb68f73.zip |
Fix bug #8047 - mdns registration doesn't work if "interfaces" is used in smb.conf
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Apr 1 23:15:34 CEST 2011 on sn-devel-104
-rw-r--r-- | source3/smbd/server.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c index e9332c1f14d..1948077c1f8 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; } |