our $cldsecs; # the amount of cpu time any child processes have consumed
our $allowslashcall; # Allow / in connecting callsigns (ie PA0/G1TLH, or even PA0/G1TLH/2)
+our $localhost_alias_ipv4; # these are the IPV4 & 6 aliases for localhost connected clients
+our $localhost_alias_ipv6; # for things (PC92, PC61 etc) that expose IP addresses. These *may*
+ # be set by Msg.pm stuff if they are left undefined but, if you need
+ # certanty then set/var them in the startup file.
use vars qw($version $subversion $build $gitversion $gitbranch);
}
# now deal with the lock
+ my $host = $conn->peerhost;
if ($lock) {
- my $host = $conn->peerhost;
LogDbg('', "$call on $host is locked out, disconnected");
$conn->disconnect;
return;
}
+ # Is he from a badip?
+ if (DXCIDR::find($host)) {
+ LogDbg('', "$call on $host is from a badip $host, disconnected");
+ $conn->disconnect;
+ return;
+ }
+
# set up the basic channel info for "Normal" Users
# is there one already connected to me - locally?
# close all databases
DXDb::closeall;
+ # Write route cache
+ Route::write_cache();
+
# close all listeners
foreach my $l (@listeners) {
$l->close_server;
AGWMsg::init(\&new_channel);
}
-
sub setup_start
{
#############################################################
}
}
-
+ # read any route cache there might be
+ Route::read_cache();
+
# start listening for incoming messages/connects
dbg("starting listeners ...");
my $conn = IntMsg->new_server($clusteraddr, $clusterport, \&login);
sub per_10_minute
{
RBN::per_10_minute();
+ Route::write_cache();
}
sub per_hour