push non-pc9x and non-spider nodes back for routing
authorDirk Koopman <djk@tobit.co.uk>
Wed, 10 Oct 2007 10:45:59 +0000 (11:45 +0100)
committerDirk Koopman <djk@tobit.co.uk>
Wed, 10 Oct 2007 10:45:59 +0000 (11:45 +0100)
At the moment it appears that we can rely on non-spider nodes routing
stuff correctly for mail and rcmd. So we push those routes to the back
of the list.

perl/Route.pm
perl/Version.pm

index 0f23d45531c1e40ba6aa9640931b232e01a338eb..abc098471e7edaf0e7a721887a778359a77b3571 100644 (file)
@@ -312,7 +312,7 @@ sub findroutes
                unless ($seen->{$ncall}) {
 
                        # put non-pc9x nodes to the back of the queue
-                       my $l = $level + ($nref->{do_pc9x} ? 0 : 30);
+                       my $l = $level + ($nref->{do_pc9x} && ($nref->{version}||5454) >= 5454 ? 0 : 30);
                        dbg("recursing from $call -> $ncall level $l") if isdbg('routec');
                        my @rout = findroutes($ncall, $l+1, $seen);
                        push @out, @rout;
index 71aff4a098d1197381d2f49bc67e797cf40de885..42a16ea3712fb80f93158cbcffbf9b63b6b488c6 100644 (file)
@@ -11,6 +11,6 @@ use vars qw($version $subversion $build);
 
 $version = '1.54';
 $subversion = '0';
-$build = '168';
+$build = '169';
 
 1;