From: janw Date: Wed, 6 May 2009 14:36:07 +0000 (+0000) Subject: Allow get_local_mac_for_remote_ip to translate hostnames to ip addresses. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a4d7d24e99c82e1779929fe15c12ff382d9f736c;p=gosa.git Allow get_local_mac_for_remote_ip to translate hostnames to ip addresses. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13620 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client index cb2f70efa..e24b8d119 100755 --- a/gosa-si/gosa-si-client +++ b/gosa-si/gosa-si-client @@ -329,7 +329,7 @@ sub get_local_mac_for_remote_ip { my $server_ip= shift; my $result= "00:00:00:00:00:00"; - if($server_ip =~ /^[a-z][a-z0-9\.]$/i) { + if($server_ip =~ /^[a-z][a-z0-9\.]+/i) { my $ip_address = inet_ntoa(scalar gethostbyname($server_ip)); if(defined($ip_address) && $ip_address =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/) { # Write ip address to $server_ip variable