Index: ldirectord =================================================================== RCS file: /home/cvs/linux-ha/linux-ha/ldirectord/ldirectord,v retrieving revision 1.16 diff -u -r1.16 ldirectord --- ldirectord 2000/07/21 01:33:23 1.16 +++ ldirectord 2000/08/01 22:06:13 @@ -593,9 +593,9 @@ $flags =~ /(\w+)(.*)/ && ($1 eq "gate" || $1 eq "masq" || $1 eq "ipip") or config_error($line, "forward method must be gate, masq or ipip"); my $fwd = $1; - if ($2 =~ /\s+(\d+)\s+(.*)/) { + if ($2 =~ /\s+(\d+)(\s+(.*))?/) { my $weight = $1; - if ($2 =~ /\"(.*)\",\s*\"(.*)\"/) { + if ($3 =~ /\"(.*)\",\s*\"(.*)\"/) { push(@$rsrv, {"server"=>$rmts, "port"=>$rmtp, "forward"=>$fwd, "weight"=>$weight, "request"=>$1, "receive"=>$2}); } else { push(@$rsrv, {"server"=>$rmts, "port"=>$rmtp, "forward"=>$fwd, "weight"=>$weight});