[LON-CAPA-cvs] cvs: loncom / lonc
www
lon-capa-cvs@mail.lon-capa.org
Tue, 19 Feb 2002 22:51:14 -0000
www Tue Feb 19 17:51:14 2002 EDT
Modified files:
/loncom lonc
Log:
Skip empty lines in broken hosts.tabs
Index: loncom/lonc
diff -u loncom/lonc:1.27 loncom/lonc:1.28
--- loncom/lonc:1.27 Tue Feb 19 16:49:12 2002
+++ loncom/lonc Tue Feb 19 17:51:13 2002
@@ -5,7 +5,7 @@
# provides persistent TCP connections to the other servers in the network
# through multiplexed domain sockets
#
-# $Id: lonc,v 1.27 2002/02/19 21:49:12 www Exp $
+# $Id: lonc,v 1.28 2002/02/19 22:51:13 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -160,8 +160,10 @@
while ($configline=<CONFIG>) {
my ($id,$domain,$role,$name,$ip)=split(/:/,$configline);
chomp($ip);
- $hostip{$id}=$ip;
- $hostname{$id}=$name;
+ if ($ip) {
+ $hostip{$id}=$ip;
+ $hostname{$id}=$name;
+ }
}
close(CONFIG);