From: Dirk Koopman Date: Thu, 2 Oct 2008 22:03:15 +0000 (+0100) Subject: make sure the maxconnect check is on incoming only X-Git-Tag: 1.56~66 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=b863ad60651637704882305af0f1ff84a1e45a56;p=spider.git make sure the maxconnect check is on incoming only --- diff --git a/Changes b/Changes index bcc4bf54..4a337629 100644 --- 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) diff --git a/perl/Version.pm b/perl/Version.pm index 0bddeb20..c54f29dd 100644 --- a/perl/Version.pm +++ b/perl/Version.pm @@ -11,6 +11,6 @@ use vars qw($version $subversion $build); $version = '1.55'; $subversion = '0'; -$build = '29'; +$build = '30'; 1; diff --git a/perl/cluster.pl b/perl/cluster.pl index 0bf30659..1fca8917 100755 --- a/perl/cluster.pl +++ b/perl/cluster.pl @@ -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;