chiark / gitweb /
Installation fixes
[ypp-sc-tools.main.git] / yarrg / dictionary-update-receiver
index eee7d1464caaadba6834b3ca185f7f047afce60f..cd26a2663256e98a42b3812eba70597c5b661f4d 100755 (executable)
@@ -205,15 +205,7 @@ if (defined $ocean && defined $pirate) {
     $pirate= '';
 }
 
-my $caller= $ENV{'REMOTE_ADDR'};
-$caller= 'LOCAL' unless defined $caller;
-
-my $fwdf= $ENV{'HTTP_X_FORWARDED_FOR'};
-if (defined $fwdf) {
-    $fwdf =~ s/\s//g;
-    $fwdf =~ s/[^0-9.,]/?/g;
-    $caller= "$fwdf,$pirate";
-}
+my $caller= cgi_get_caller();
 
 my $kind;
 my @xa;