[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

raeburn raeburn at source.lon-capa.org
Mon Feb 8 09:10:17 EST 2021


raeburn		Mon Feb  8 14:10:17 2021 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - Retrieval of requestor's IP address centralized in lonnet::get_requestor_ip()
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1440 loncom/lonnet/perl/lonnet.pm:1.1441
--- loncom/lonnet/perl/lonnet.pm:1.1440	Mon Feb  1 00:20:56 2021
+++ loncom/lonnet/perl/lonnet.pm	Mon Feb  8 14:10:17 2021
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1440 2021/02/01 00:20:56 raeburn Exp $
+# $Id: lonnet.pm,v 1.1441 2021/02/08 14:10:17 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -12419,7 +12419,7 @@
         }
     } elsif ($realm eq 'client') {
         if ($space eq 'remote_addr') {
-            return $ENV{'REMOTE_ADDR'};
+            return &get_requestor_ip();
         }
     }
     return '';




More information about the LON-CAPA-cvs mailing list