This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Undernet IRC Server Source Code.".

The branch, u2_10_12_branch has been updated
       via  82d1a349e2836e5708e9b19c04d2d3128af9042d (commit)
      from  8343d12c258e15d99a17fda14ddfec065f0855a9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 82d1a349e2836e5708e9b19c04d2d3128af9042d
Author: Michael Poole <[email protected]>
Date:   Thu Dec 15 22:31:40 2016 -0500

    IPcheck: Update entry->connected on /48 throttle.

diff --git a/ircd/IPcheck.c b/ircd/IPcheck.c
index 7eef70f..1eb74b8 100644
--- a/ircd/IPcheck.c
+++ b/ircd/IPcheck.c
@@ -373,7 +373,18 @@ int ip_registry_check_local(const struct irc_in_addr 
*addr, time_t* next_target_
 #ifndef NOTHROTTLE
     if ((entry_48->attempts >= IPCHECK_48_CLONE_LIMIT)
         && ((CurrentTime - cli_since(&me) > IPCHECK_CLONE_DELAY)))
+    {
+      if (entry)
+      {
+        entry->last_connect = NOW;
+        if (!++entry->connected)
+        {
+          entry->connected--;
+          entry = NULL;
+        }
+      }
       goto reject;
+    }
 #endif
   }
 
-----------------------------------------------------------------------

Summary of changes:
 ircd/IPcheck.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Undernet IRC Server Source Code.
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to