Code

bugfix strange remote ip from incoming message host
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 28 May 2009 12:52:41 +0000 (12:52 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 28 May 2009 12:52:41 +0000 (12:52 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13677 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/gosa-si-server

index 32e99c71af0410842e3d43e952f2b6c550885813..8a8c11447f22d23bffcdfe0dc4bfc53b895f34b8 100755 (executable)
@@ -3538,8 +3538,7 @@ POE::Component::Server::TCP->new(
        ClientInput => sub {
                my ($kernel, $input, $heap, $session) = @_[KERNEL, ARG0, HEAP, SESSION];
         my $session_id = $session->ID;
-               $input =~ /;([\d\.]*:[\d]*)$/ ;
-               if (defined $1) 
+               if ($input =~ /;([\d\.]+:[\d]+)$/) 
                {
                        &daemon_log("$session_id DEBUG: incoming message from '$1'", 7);
                }