Code

Fixes.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 Mar 2008 10:38:34 +0000 (10:38 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 Mar 2008 10:38:34 +0000 (10:38 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9665 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/modules/SIPackages.pm

index cbd1026ad6201c2f275dd73198f9a1266ca83f58..099ae2121b449bfd32c8bd2d0266577e74064ca6 100644 (file)
@@ -248,7 +248,7 @@ sub get_interface_for_ip {
                } else {
                        foreach (@ifs) {
                                my $if=$_;
-                               if(get_ip($if) eq $ip) {
+                               if(&main::get_ip($if) eq $ip) {
                                        $result = $if;
                                }
                        }       
@@ -893,6 +893,8 @@ sub server_matches {
 
        if($server_ip eq $target_ip) {
                $result= 1;
+       } elsif ($target_ip eq "0.0.0.0") {
+               $result= 1;
        } elsif ($server_ip eq "0.0.0.0") {     
                if ($target_ip eq "127.0.0.1") {
                        $result= 1;