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
c0dc2ab241
commit
7149ee1696
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167455
@ -2222,6 +2222,7 @@ cpmip(const struct servtab *sep, int ctrl)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (sep->se_maxcpm > 0 &&
|
if (sep->se_maxcpm > 0 &&
|
||||||
|
(sep->se_family == AF_INET || sep->se_family == AF_INET6) &&
|
||||||
getpeername(ctrl, (struct sockaddr *)&rss, &rssLen) == 0 ) {
|
getpeername(ctrl, (struct sockaddr *)&rss, &rssLen) == 0 ) {
|
||||||
time_t t = time(NULL);
|
time_t t = time(NULL);
|
||||||
int hv = 0xABC3D20F;
|
int hv = 0xABC3D20F;
|
||||||
|
Loading…
Reference in New Issue
Block a user