--- loncom/lond 2003/11/12 20:47:04 1.162 +++ loncom/lond 2003/12/02 10:37:59 1.164 @@ -2,7 +2,7 @@ # The LearningOnline Network # lond "LON Daemon" Server (port "LOND" 5663) # -# $Id: lond,v 1.162 2003/11/12 20:47:04 matthew Exp $ +# $Id: lond,v 1.164 2003/12/02 10:37:59 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -52,7 +52,7 @@ my $DEBUG = 0; # Non zero to ena my $status=''; my $lastlog=''; -my $VERSION='$Revision: 1.162 $'; #' stupid emacs +my $VERSION='$Revision: 1.164 $'; #' stupid emacs my $remoteVERSION; my $currenthostid; my $currentdomainid; @@ -205,26 +205,7 @@ sub ReadManagerTable { sub ValidManager { my $certificate = shift; - ReadManagerTable; - - my $hostname = $hostid{$certificate}; - - - if ($hostname ne undef) { - if($managers{$hostname} ne undef) { - &logthis('Authenticating manager'. - " $hostname"); - return 1; - } else { - &logthis('"); - return 0; - } - } else { - &logthis(' Failed manager authentication '. - "$certificate "); - return 0; - } + return isManager; } # # CopyFile: Called as part of the process of installing a @@ -2519,6 +2500,7 @@ sub make_new_child { &logthis( "Client $clientip ($clientname) hanging up: $userinput"); print $client "bye\n"; + $client->shutdown(2); # shutdown the socket forcibly. $client->close(); last;