From: rettenbe Date: Fri, 5 Jun 2009 12:14:11 +0000 (+0000) Subject: update to config option ServerPackages? - enabled = false X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7e1d7ae7b7fa275ac95b2f1d9b46957422d47ba2;p=gosa.git update to config option ServerPackages? - enabled = false git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13698 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index 168881af3..7d03c9af8 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -3629,9 +3629,14 @@ POE::Component::Server::TCP->new( ClientInput => sub { my ($kernel, $input, $heap, $session) = @_[KERNEL, ARG0, HEAP, SESSION]; my $session_id = $session->ID; - if ($input =~ /;([\d\.]+:[\d]+)$/) + if ($input =~ /;([\d\.]+):([\d]+)$/) { - &daemon_log("$session_id DEBUG: incoming message from '$1'", 11); + # Messages from other servers should be blocked if config option is set + if (($2 eq $server_port) && ($serverPackages_enabled eq "false")) + { + return; + } + &daemon_log("$session_id DEBUG: incoming message from '$1:$2'", 11); } else {