mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix handling of org.alfresco.filesys.config.CIFSConfigBean.getBindToAddress(). An empty string value should be treated equivalent to null.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14068 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -5,7 +5,7 @@ cifs.serverName=${localname}A
|
|||||||
cifs.domain=
|
cifs.domain=
|
||||||
cifs.broadcast=255.255.255.255
|
cifs.broadcast=255.255.255.255
|
||||||
# An empty value indicates bind to all available network adapters
|
# An empty value indicates bind to all available network adapters
|
||||||
cifs.bindto=0.0.0.0
|
cifs.bindto=
|
||||||
cifs.ipv6.enabled=false
|
cifs.ipv6.enabled=false
|
||||||
cifs.hostannounce=true
|
cifs.hostannounce=true
|
||||||
# Enable the use of asynchronous sockets/NIO code
|
# Enable the use of asynchronous sockets/NIO code
|
||||||
|
@@ -331,7 +331,8 @@ public class ServerConfigurationBean extends AbstractServerConfigurationBean
|
|||||||
|
|
||||||
cifsConfig.setSMBBindAddress(bindAddr);
|
cifsConfig.setSMBBindAddress(bindAddr);
|
||||||
}
|
}
|
||||||
else if ((bindTo = cifsConfigBean.getBindToAddress()) != null && !bindTo.equals(BIND_TO_IGNORE))
|
else if ((bindTo = cifsConfigBean.getBindToAddress()) != null && bindTo.length() > 0
|
||||||
|
&& !bindTo.equals(BIND_TO_IGNORE))
|
||||||
{
|
{
|
||||||
|
|
||||||
// Validate the bind address
|
// Validate the bind address
|
||||||
|
Reference in New Issue
Block a user