Code

Save outgoing address when registration was sucessfull.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 7 Feb 2008 07:41:01 +0000 (07:41 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 7 Feb 2008 07:41:01 +0000 (07:41 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8762 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/gosa-si-client

index fd36a5bbf7361f435f95a737af38c7558e6a31cd..3d627c9b070a20ee51c733819ab2fe9c56be833b 100755 (executable)
@@ -867,6 +867,9 @@ sub register_at_gosa_si_server {
             # send xml hash to server with general server passwd
             my $res = &send_msg_hash2address($register_hash, $server, $default_server_key);
                        if($res == 0) {
+                               # Set fixed client address
+                               $client_ip= &get_local_ip_for_remote_ip(sprintf("%s", $server =~ /^([0-9\.]*?):.*$/));
+                               $client_address= "$client_ip:$client_port";
                                last;
                        } else {
                                next;