[ldap-contacts-suggestions] Default to localhost instead of 127.0.0.1

No need to default to IPv4 only.
This commit is contained in:
David Härdeman 2021-08-23 10:14:42 +02:00
parent 9876597542
commit 5cbc3ed3f9
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ class LdapContactsSuggestions implements \RainLoop\Providers\Suggestions\ISugges
/** /**
* @var string * @var string
*/ */
private $sLdapUri = 'ldap://127.0.0.1:389'; private $sLdapUri = 'ldap://localhost:389';
/** /**
* @var bool * @var bool

View file

@ -74,7 +74,7 @@ class LdapContactsSuggestionsPlugin extends \RainLoop\Plugins\AbstractPlugin
return array( return array(
\RainLoop\Plugins\Property::NewInstance('ldap_uri')->SetLabel('LDAP URI') \RainLoop\Plugins\Property::NewInstance('ldap_uri')->SetLabel('LDAP URI')
->SetDescription('LDAP server URI(s), space separated') ->SetDescription('LDAP server URI(s), space separated')
->SetDefaultValue('ldap://127.0.0.1:389'), ->SetDefaultValue('ldap://localhost:389'),
\RainLoop\Plugins\Property::NewInstance('use_start_tls')->SetLabel('Use StartTLS') \RainLoop\Plugins\Property::NewInstance('use_start_tls')->SetLabel('Use StartTLS')
->SetType(\RainLoop\Enumerations\PluginPropertyType::BOOL) ->SetType(\RainLoop\Enumerations\PluginPropertyType::BOOL)
->SetDefaultValue(True), ->SetDefaultValue(True),