Diff for /loncom/lonnet/perl/lonnet.pm between versions 1.1527 and 1.1528

version 1.1527, 2024/05/21 02:57:16 version 1.1528, 2024/06/14 18:49:42
Line 188  sub create_connection { Line 188  sub create_connection {
      Type    => SOCK_STREAM,       Type    => SOCK_STREAM,
      Timeout => 10);       Timeout => 10);
     return 0 if (!$client);      return 0 if (!$client);
     print $client (join(':',$hostname,$lonid,&machine_ids($hostname),$loncaparevs{$lonid})."\n");      if ($loncaparevs{$lonid} =~ /^(\d+\.\d+\.[\w.]+)-\d+$/) {
           print $client (join(':',$hostname,$lonid,$1,&machine_ids($hostname))."\n");
       } else {
           print $client (join(':',$hostname,$lonid,&machine_ids($hostname))."\n");
       }
     my $result = <$client>;      my $result = <$client>;
     chomp($result);      chomp($result);
     return 1 if ($result eq 'done');      return 1 if ($result eq 'done');

Removed from v.1.1527  
changed lines
  Added in v.1.1528


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>