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

raeburn raeburn at source.lon-capa.org
Mon Aug 19 23:46:10 EDT 2019


raeburn		Tue Aug 20 03:46:10 2019 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - Call &EXT('client.remote_addr'} to retrieve user's IP address.
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1414 loncom/lonnet/perl/lonnet.pm:1.1415
--- loncom/lonnet/perl/lonnet.pm:1.1414	Thu Jul 25 20:23:59 2019
+++ loncom/lonnet/perl/lonnet.pm	Tue Aug 20 03:46:09 2019
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1414 2019/07/25 20:23:59 raeburn Exp $
+# $Id: lonnet.pm,v 1.1415 2019/08/20 03:46:09 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -12280,6 +12280,10 @@
 	if ($space eq 'name') {
 	    return $ENV{'SERVER_NAME'};
         }
+    } elsif ($realm eq 'client') {
+        if ($space eq 'remote_addr') {
+            return $ENV{'REMOTE_ADDR'};
+        }
     }
     return '';
 }




More information about the LON-CAPA-cvs mailing list