--- loncom/lonnet/perl/lonnet.pm 2016/07/25 19:50:44 1.1315 +++ loncom/lonnet/perl/lonnet.pm 2016/08/01 18:05:22 1.1316 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.1315 2016/07/25 19:50:44 raeburn Exp $ +# $Id: lonnet.pm,v 1.1316 2016/08/01 18:05:22 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -235,7 +235,7 @@ sub get_servercerts_info { if (grep { $_ eq $lonhost } ¤t_machine_ids()) { $uselocal = 1; } - if (($context ne 'cgi') || $uselocal) { + if (($context ne 'cgi') && ($uselocal)) { my $distro = (split(/\:/,&get_server_distarch($lonhost)))[0]; if ($distro =~ /^(?:centos|redhat|scientific)(\d+)$/) { if ($1 < 6) {