thomas: server/perl-kolab/lib Kolab.pm,1.4,1.5
cvs at kolab.org
cvs at kolab.org
Mon Oct 8 17:50:13 CEST 2007
Author: thomas
Update of /kolabrepository/server/perl-kolab/lib
In directory doto:/tmp/cvs-serv18052/perl-kolab/lib
Modified Files:
Kolab.pm
Log Message:
Determine connect_addr and use it for connecting to Kolab services.
Index: Kolab.pm
===================================================================
RCS file: /kolabrepository/server/perl-kolab/lib/Kolab.pm,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- Kolab.pm 15 Aug 2007 16:35:19 -0000 1.4
+++ Kolab.pm 8 Oct 2007 15:50:11 -0000 1.5
@@ -251,6 +251,14 @@
$config{'fqdn'} = trim(`hostname`);
+ # connect to services at local address if binding to any interface,
+ # otherwise use the address specified for the public interface.
+ if ($config{'bind_any'} =~ /true/i) {
+ $config{'connect_addr'} = $config{'local_addr'};
+ } else {
+ $config{'connect_addr'} = $config{'bind_addr'};
+ }
+
# Cyrus admin account
$tempval = $config{'cyrus-admins'} || 'manager';
(my $cmanager, my $dummy) = split(/ /, $tempval, 2);
More information about the commits
mailing list