From 4750ae2bdab03329c9c8a9fe2cd3342741fe745c Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Fri, 15 Jun 2001 10:47:53 +0000 Subject: [PATCH] updates --- apps/silcd/server.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/silcd/server.c b/apps/silcd/server.c index 0a2f11f9..9914f962 100644 --- a/apps/silcd/server.c +++ b/apps/silcd/server.c @@ -1010,6 +1010,9 @@ SILC_TASK_CALLBACK(silc_server_accept_new_connection) later when outgoing data is available. */ SILC_REGISTER_CONNECTION_FOR_IO(sock); + SILC_LOG_INFO(("Incoming connection from %s (%s)", newsocket->hostname, + newsocket->ip)); + port = server->sockets[fd]->port; /* Listenning port */ /* Check whether this connection is denied to connect to us. */ @@ -1019,6 +1022,8 @@ SILC_TASK_CALLBACK(silc_server_accept_new_connection) port); if (deny) { /* The connection is denied */ + SILC_LOG_INFO(("Connection %s (%s) is denied", + newsocket->hostname, newsocket->ip)); silc_server_disconnect_remote(server, newsocket, deny->comment ? deny->comment : "Server closed connection: " @@ -1056,9 +1061,6 @@ SILC_TASK_CALLBACK(silc_server_accept_new_connection) /* The connection is allowed */ - SILC_LOG_INFO(("Incoming connection from %s (%s)", newsocket->hostname, - newsocket->ip)); - /* Allocate internal context for key exchange protocol. This is sent as context for the protocol. */ proto_ctx = silc_calloc(1, sizeof(*proto_ctx)); -- 2.43.0