added IP address logging for connections
authorminima <minima>
Tue, 11 Sep 2001 21:01:59 +0000 (21:01 +0000)
committerminima <minima>
Tue, 11 Sep 2001 21:01:59 +0000 (21:01 +0000)
Changes
perl/DXChannel.pm
perl/DXCommandmode.pm
perl/DXProt.pm
perl/cluster.pl

diff --git a/Changes b/Changes
index a34ac3041be78126213d868ee380520ef14f6b6b..a2b0354dcc368c85f0742f5f5fd09efae7d0dfd1 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,3 +1,5 @@
+11Sep01=======================================================================
+1. added IP address logging of connections
 10Sep01=======================================================================
 1. clear/* node_default and user_default now work.
 2. in acc or rej/* you can now use (comma separated) prefixes as well as lists
index 8a186e3c134247e1a38262663518657825f13280..ba2e0edcad28607cb0df2502567817c95909e444 100644 (file)
@@ -74,16 +74,16 @@ $count = 0;
                  group => '0,Access Group,parray',     # used to create a group of users/nodes for some purpose or other
                  isolate => '5,Isolate network,yesno',
                  delayed => '5,Delayed messages,parray',
-                 annfilter => '5,Announce Filter',
-                 wwvfilter => '5,WWV Filter',
-                 wcyfilter => '5,WCY Filter',
-                 spotsfilter => '5,Spot Filter',
-                 routefilter => '5,route Filter',
-                 inannfilter => '5,Input Ann Filter',
-                 inwwvfilter => '5,Input WWV Filter',
-                 inwcyfilter => '5,Input WCY Filter',
-                 inspotsfilter => '5,Input Spot Filter',
-                 inroutefilter => '5,Input Route Filter',
+                 annfilter => '5,Ann Filt-out',
+                 wwvfilter => '5,WWV Filt-out',
+                 wcyfilter => '5,WCY Filt-out',
+                 spotsfilter => '5,Spot Filt-out',
+                 routefilter => '5,Route Filt-out',
+                 inannfilter => '5,Ann Filt-inp',
+                 inwwvfilter => '5,WWV Filt-inp',
+                 inwcyfilter => '5,WCY Filt-inp',
+                 inspotsfilter => '5,Spot Filt-inp',
+                 inroutefilter => '5,Route Filt-inp',
                  passwd => '9,Passwd List,parray',
                  pingint => '5,Ping Interval ',
                  nopings => '5,Ping Obs Count',
index ff173906bebef9945743b6e5eeb089bca430a886..5e6c722646867868d7eb47171fc0fbdab6ab9fb5 100644 (file)
@@ -75,6 +75,10 @@ sub start
        my $call = $self->{call};
        my $name = $user->{name};
        
+       # log it
+       my $host = $self->{conn}->{peerhost} || "unknown";
+       Log('DXCommand', "$call connected from $host");
+
        $self->{name} = $name ? $name : $call;
        $self->send($self->msg('l2',$self->{name}));
        $self->send_file($main::motd) if (-e $main::motd);
@@ -113,8 +117,6 @@ sub start
                $user->qra(DXBearing::lltoqra($lat, $long)) if (defined $lat && defined $long);  
        }
 
-       Log('DXCommand', "$call connected");
-
        # send prompts and things
        my $info = Route::cluster();
        $self->send("Cluster:$info");
index f6a32cce44f9ef97be30adf9cac8008de470032a..e78d9a7a20fb0e2f2afe27e671e2cae00c430954 100644 (file)
@@ -216,6 +216,10 @@ sub start
        my ($self, $line, $sort) = @_;
        my $call = $self->{call};
        my $user = $self->{user};
+
+       # log it
+       my $host = $self->{conn}->{peerhost} || "unknown";
+       Log('DXProt', "$call connected from $host");
        
        # remember type of connection
        $self->{consort} = $line;
@@ -267,8 +271,6 @@ sub start
 
        # send info to all logged in thingies
        $self->tell_login('loginn');
-
-       Log('DXProt', "$call connected");
 }
 
 #
index aa95e7ac680df8c1f16ca30992312c6c69083da3..516e7cb1eb8f57ae33478d313e97ee9627df3245 100755 (executable)
@@ -159,7 +159,8 @@ sub new_channel
        
        # is he locked out ?
        if ($user->lockout) {
-               Log('DXCommand', "$call is locked out, disconnected");
+               my $host = $conn->{peerhost} || "unknown";
+               Log('DXCommand', "$call on $host is locked out, disconnected");
                $conn->disconnect;
                return;
        }