From: rettenbe Date: Fri, 4 Jul 2008 11:10:58 +0000 (+0000) Subject: bugfix: get_local_ip_for_remote_ip was invoked with a mac address X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ff0932941a2db2b7b7c2eec0d77628123fadf247;p=gosa.git bugfix: get_local_ip_for_remote_ip was invoked with a mac address git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11534 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index 825b040bf..c9cbfa3ad 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -1175,7 +1175,9 @@ sub msg_to_decrypt { $sql = "SELECT * FROM $foreign_clients_tn WHERE (hostname='$target' OR macaddress LIKE '$target')"; $res = $foreign_clients_db->select_dbentry($sql); if (keys(%$res) > 0) { - my $hostname = $res->{1}->{'hostname'}; + my $hostname = $res->{1}->{'hostname'}; + my ($host_ip, $host_port) = split(/:/, $hostname); + my $local_address = &get_local_ip_for_remote_ip($host_ip).":$server_port"; my $regserver = $res->{1}->{'regserver'}; my $sql = "SELECT * FROM $known_server_tn WHERE hostname='$regserver'"; my $res = $known_server_db->select_dbentry($sql);