From: janw Date: Mon, 11 Feb 2008 09:57:54 +0000 (+0000) Subject: Correct the source ip if 0.0.0.0 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f43cbfeee15e2d08b67c9e80b011ee96d74ef8fc;p=gosa.git Correct the source ip if 0.0.0.0 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8814 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index b27492194..71500ad2c 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -667,6 +667,10 @@ sub send_msg_to_target { $header = ""; } + # Patch the source ip + my $remote_ip = sprintf("%s", $address =~ /^([0-9\.]*?):.*$/); + $msg =~ s/(0\.0\.0\.0):(\d*?)<\/source>/$remote_ip:\2<\/source>/s; + # encrypt xml msg my $crypted_msg = &encrypt_msg($msg, $encrypt_key);