From 93a962496dcccb2d2f746dc8c8f9be6a9ab4b6e8 Mon Sep 17 00:00:00 2001 From: janw Date: Thu, 12 Mar 2009 11:16:56 +0000 Subject: [PATCH] Translate hostnames to ip-addresses if possible. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13538 594d385d-05f5-0310-b6e9-bd551577e9d8 --- trunk/gosa-si/gosa-si-server | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/gosa-si/gosa-si-server b/trunk/gosa-si/gosa-si-server index d13b4212d..85fd54d8c 100755 --- a/trunk/gosa-si/gosa-si-server +++ b/trunk/gosa-si/gosa-si-server @@ -610,7 +610,7 @@ sub check_outgoing_xml_validity { } # Check if source contains hostname instead of ip address - if(not $source =~ /^[a-z0-9\.]+:\d+$/i) { + if($source =~ /^[a-z][a-z0-9\.]+:\d+$/i) { my ($hostname,$port) = split(/:/, $source); my $ip_address = inet_ntoa(scalar gethostbyname($hostname)); if(defined($ip_address) && $ip_address =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/ && $port =~ /^\d+$/) { -- 2.30.2