mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
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
This commit is contained in:
parent
1272758f8f
commit
ac216c130e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user