From f43cbfeee15e2d08b67c9e80b011ee96d74ef8fc Mon Sep 17 00:00:00 2001 From: janw Date: Mon, 11 Feb 2008 09:57:54 +0000 Subject: [PATCH] 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 --- gosa-si/gosa-si-server | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.30.2