[LON-CAPA-cvs] cvs: loncom / lond

raeburn raeburn at source.lon-capa.org
Tue Feb 28 10:54:07 EST 2012


raeburn		Tue Feb 28 15:54:07 2012 EDT

  Modified files:              
    /loncom	lond 
  Log:
  - Use hostname in place of IP address to avoid a "certificate verify failed"
    issue with certain SSL configurations.
  
  
Index: loncom/lond
diff -u loncom/lond:1.485 loncom/lond:1.486
--- loncom/lond:1.485	Thu Nov 17 18:22:36 2011
+++ loncom/lond	Tue Feb 28 15:54:07 2012
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.485 2011/11/17 18:22:36 raeburn Exp $
+# $Id: lond,v 1.486 2012/02/28 15:54:07 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -60,7 +60,7 @@
 my $status='';
 my $lastlog='';
 
-my $VERSION='$Revision: 1.485 $'; #' stupid emacs
+my $VERSION='$Revision: 1.486 $'; #' stupid emacs
 my $remoteVERSION;
 my $currenthostid="default";
 my $currentdomainid;
@@ -2350,7 +2350,8 @@
 	my $transname=$udir.'/'.$ufile.'.in.transit';
         my $clientprotocol=$Apache::lonnet::protocol{$clientname};
         $clientprotocol = 'http' if ($clientprotocol ne 'https');
-	my $remoteurl=$clientprotocol.'://'.$clientip.'/userfiles/'.$fname;
+	my $clienthost = &Apache::lonnet::hostname($clientname);
+	my $remoteurl=$clientprotocol.'://'.$clienthost.'/userfiles/'.$fname;
 	my $response;
 	Debug("Remote URL : $remoteurl Transfername $transname Destname: $destname");
 	alarm(120);




More information about the LON-CAPA-cvs mailing list