Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[ljcom] r9956: LJM-1684: User's IP in HTTP SUP::RPC req...

Committer: gariev
LJM-1684: User's IP in HTTP SUP::RPC requests
U   trunk/htdocs/sup/rpc_interface.bml
Modified: trunk/htdocs/sup/rpc_interface.bml
===================================================================
--- trunk/htdocs/sup/rpc_interface.bml	2011-01-27 12:21:59 UTC (rev 9955)
+++ trunk/htdocs/sup/rpc_interface.bml	2011-01-27 12:37:48 UTC (rev 9956)
@@ -26,8 +26,8 @@
     # Accept requests only from SUP-data-center
    
     my $params = LJ::did_post() ? \%POST : \%GET;
-    my $ip_class  = LJ::LJcom::ip_class();
     my $remote_ip = LJ::Request->pnotes('trusted_service_ip') || LJ::get_remote_ip();
+    my $ip_class  = LJ::GeoLocation->ip_class($remote_ip);
 
     LJ::Request->notes('codepath' => "interface.sup_rpc.index:" . $params->{action});
     

Tags: bml, gariev, ljcom
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments