From 7dd8a4565fefcc061d82bd74968532f3f8899329 Mon Sep 17 00:00:00 2001 From: rettenbe Date: Fri, 22 Feb 2008 12:35:57 +0000 Subject: [PATCH] bugfix: fetch gosa-si-server addresses from dns git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9069 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/gosa-si-client | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client index 9ba139c45..9e18182a2 100755 --- a/gosa-si/gosa-si-client +++ b/gosa-si/gosa-si-client @@ -1381,7 +1381,9 @@ $default_server_key = $server_key; # add gosa-si-server address from config file at first position of server list -if (defined $server_address) { +my $server_check_cfg = Config::IniFiles->new( -file => $cfg_file ); +my $server_check = $server_check_cfg->val( "server", "ip"); +if( defined $server_check ) { unshift(@servers, $server_address); my $servers_string = join(", ", @servers); daemon_log("found servers in configuration file: $servers_string", 5); -- 2.30.2