ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/src/conf.c
(Generate patch)

Comparing ircd-hybrid/branches/8.2.x/src/conf.c (file contents):
Revision 8876 by michael, Sat Feb 16 22:42:06 2019 UTC vs.
Revision 8902 by michael, Sun Apr 21 20:41:04 2019 UTC

# Line 761 | Line 761 | conf_connect_allowed(struct irc_ssaddr *
761  
762    ip_found = ipcache_record_find_or_add(addr);
763  
764 <  if ((CurrentTime - ip_found->last_attempt) < ConfigGeneral.throttle_time)
764 >  if ((event_base->time.sec_monotonic - ip_found->last_attempt) < ConfigGeneral.throttle_time)
765    {
766      if (ip_found->connection_count >= ConfigGeneral.throttle_count)
767        return TOO_FAST;
# Line 771 | Line 771 | conf_connect_allowed(struct irc_ssaddr *
771    else
772      ip_found->connection_count = 1;
773  
774 <  ip_found->last_attempt = CurrentTime;
774 >  ip_found->last_attempt = event_base->time.sec_monotonic;
775    return 0;
776   }
777  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines