From b863ad60651637704882305af0f1ff84a1e45a56 Mon Sep 17 00:00:00 2001 From: Dirk Koopman Date: Thu, 2 Oct 2008 23:03:15 +0100 Subject: [PATCH] make sure the maxconnect check is on incoming only --- Changes | 1 + perl/Version.pm | 2 +- perl/cluster.pl | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) 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; -- 2.34.1