summaryrefslogtreecommitdiff
path: root/lib/Kolab.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Kolab.pm')
-rw-r--r--lib/Kolab.pm10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/Kolab.pm b/lib/Kolab.pm
index 5b8197f..f33ba28 100644
--- a/lib/Kolab.pm
+++ b/lib/Kolab.pm
@@ -264,9 +264,13 @@ This function reloads the configuration for the Kolab perl library.
# connect to services at local address if binding to any interface,
# otherwise use the address specified for the public interface.
- if (!$config{'connect_addr'}) {
- if ($config{'bind_any'} =~ /true/i) {
- $config{'connect_addr'} = $config{'local_addr'};
+ if ( !exists $config{'connect_addr'} ) {
+ if ( exists $config{'bind_any'} ) {
+ if ($config{'bind_any'} =~ /true/i) {
+ $config{'connect_addr'} = '127.0.0.1';
+ } else {
+ $config{'connect_addr'} = $config{'bind_addr'};
+ }
} else {
$config{'connect_addr'} = $config{'bind_addr'};
}