mirror of https://gitlab.com/bashrc2/epicyon
Follow requests counter
parent
375ec206fd
commit
031b788aad
10
follow.py
10
follow.py
|
@ -531,14 +531,16 @@ def receiveFollowRequest(session,baseDir: str,httpPrefix: str, \
|
|||
domainToFollow,debug,approveHandle):
|
||||
if not domain.endswith('.onion'):
|
||||
if noOfFollowRequests(baseDir, \
|
||||
nicknameToFollow, \
|
||||
domainToFollow,'') > 10:
|
||||
nicknameToFollow,domainToFollow, \
|
||||
nickname,domain,fromPort, \
|
||||
'') > 10:
|
||||
print('Too many follow requests')
|
||||
return False
|
||||
else:
|
||||
if noOfFollowRequests(baseDir, \
|
||||
nicknameToFollow, \
|
||||
domainToFollow,'onion') > 5:
|
||||
nicknameToFollow,domainToFollow, \
|
||||
nickname,domain,fromPort, \
|
||||
'onion') > 5:
|
||||
print('Too many follow requests from onion addresses')
|
||||
return False
|
||||
|
||||
|
|
Loading…
Reference in New Issue