[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
www
lon-capa-cvs@mail.lon-capa.org
Tue, 11 Nov 2003 20:10:32 -0000
www Tue Nov 11 15:10:32 2003 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
Store away IP and host in preparation for future requirements.
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.446 loncom/lonnet/perl/lonnet.pm:1.447
--- loncom/lonnet/perl/lonnet.pm:1.446 Mon Nov 10 18:57:49 2003
+++ loncom/lonnet/perl/lonnet.pm Tue Nov 11 15:10:32 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.446 2003/11/10 23:57:49 albertel Exp $
+# $Id: lonnet.pm,v 1.447 2003/11/11 20:10:32 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1970,6 +1970,10 @@
}
}
if (!$home) { $home=$ENV{'user.home'}; }
+
+ $$storehash{'ip'}=$ENV{'REMOTE_ADDR'};
+ $$storehash{'host'}=$perlvar{'lonHostID'};
+
my $namevalue='';
foreach (keys %$storehash) {
$namevalue.=escape($_).'='.escape($$storehash{$_}).'&';
@@ -2002,6 +2006,9 @@
}
}
if (!$home) { $home=$ENV{'user.home'}; }
+
+ $$storehash{'ip'}=$ENV{'REMOTE_ADDR'};
+ $$storehash{'host'}=$perlvar{'lonHostID'};
my $namevalue='';
foreach (keys %$storehash) {