Don't try to apply connection-per-ip rate limiting to unix domain
sockets. Instead of rejecting all unix domain connections when the -C flag is given, allow them instead. Aragon tested an earlier version of the patch. PR: 109315 MFC after: 2 weeks Tested-by: Aragon Gouveia <aragon@phat.za.net>
This commit is contained in:
parent
f217700440
commit
8355c667d5
@ -2222,6 +2222,7 @@ cpmip(const struct servtab *sep, int ctrl)
|
||||
*/
|
||||
|
||||
if (sep->se_maxcpm > 0 &&
|
||||
(sep->se_family == AF_INET || sep->se_family == AF_INET6) &&
|
||||
getpeername(ctrl, (struct sockaddr *)&rss, &rssLen) == 0 ) {
|
||||
time_t t = time(NULL);
|
||||
int hv = 0xABC3D20F;
|
||||
|
Loading…
Reference in New Issue
Block a user