make sure the maxconnect check is on incoming only
authorDirk Koopman <djk@tobit.co.uk>
Thu, 2 Oct 2008 22:03:15 +0000 (23:03 +0100)
committerDirk Koopman <djk@tobit.co.uk>
Thu, 2 Oct 2008 22:03:15 +0000 (23:03 +0100)
Changes
perl/Version.pm
perl/cluster.pl

diff --git a/Changes b/Changes
index bcc4bf544f4fb9e5497f85ffb24110d23140904c..4a337629089fb5dcc06e570952ab05fccb00ade3 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,6 +1,7 @@
 02Oct08=======================================================================
 1. Add set/maxconnect command to allow the defaults to be overridden for
 individual users/nodes.
+2. Make sure that the check really is for incoming connections only...
 01Oct08=======================================================================
 1. added CTY-1809 prefix data
 2. added new config variables to allow an incoming users to have (as default)
index 0bddeb20281861630f2f3e1947de92ace03bfc1e..c54f29dde56cc52c435a437beaaf00ad9047a5bd 100644 (file)
@@ -11,6 +11,6 @@ use vars qw($version $subversion $build);
 
 $version = '1.55';
 $subversion = '0';
-$build = '29';
+$build = '30';
 
 1;
index 0bf306599d30ee09f7650f4f0ae04ca85c4170b4..1fca891754bed6bf9b5bcf49b072afb7a5610279 100755 (executable)
@@ -187,7 +187,7 @@ sub new_channel
 
        # (fairly) politely disconnect people that are connected to too many other places at once
        my $r = Route::get($call);
-       if ($r && $user) {
+       if ($conn->{sort} =~ /^I/ && $r && $user) {
                my @n = $r->parents;
                my $m = $r->isa('Route::Node') ? $maxconnect_node : $maxconnect_user;
                my $c = $user->maxconnect;