[LON-CAPA-cvs] cvs: loncom /auth lonlogin.pm

raeburn raeburn at source.lon-capa.org
Sun Oct 25 21:52:15 EDT 2020


raeburn		Mon Oct 26 01:52:15 2020 EDT

  Modified files:              
    /loncom/auth	lonlogin.pm 
  Log:
  - Prevent duplicates in list of other potential servers.
  
  
Index: loncom/auth/lonlogin.pm
diff -u loncom/auth/lonlogin.pm:1.180 loncom/auth/lonlogin.pm:1.181
--- loncom/auth/lonlogin.pm:1.180	Fri Oct 16 23:27:45 2020
+++ loncom/auth/lonlogin.pm	Mon Oct 26 01:52:15 2020
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Login Screen
 #
-# $Id: lonlogin.pm,v 1.180 2020/10/16 23:27:45 raeburn Exp $
+# $Id: lonlogin.pm,v 1.181 2020/10/26 01:52:15 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -469,6 +469,7 @@
             next if ($hostid eq $lonhost);
             my $hostname = &Apache::lonnet::hostname($hostid);
             next if (($hostname eq '') || ($spareservers{$hostname}));
+            $spareservers{$hostname} = 1;
             my $protocol = $Apache::lonnet::protocol{$hostid};
             $protocol = 'http' if ($protocol ne 'https');
             $spares.='<br /><a href="'.$protocol.'://'.




More information about the LON-CAPA-cvs mailing list