mirror of https://gitlab.com/bashrc2/epicyon
Snake case
parent
ae65c33553
commit
7359e81582
|
@ -1741,14 +1741,14 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
if not domain.endswith('.onion'):
|
if not domain.endswith('.onion'):
|
||||||
if not isLocalNetworkAddress(ipAddress):
|
if not isLocalNetworkAddress(ipAddress):
|
||||||
recordLoginFailure(base_dir, ipAddress,
|
recordLoginFailure(base_dir, ipAddress,
|
||||||
self.server.loginFailureCount,
|
self.server.login_failure_count,
|
||||||
failTime,
|
failTime,
|
||||||
self.server.log_login_failures)
|
self.server.log_login_failures)
|
||||||
self.server.POSTbusy = False
|
self.server.POSTbusy = False
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
if self.server.loginFailureCount.get(ipAddress):
|
if self.server.login_failure_count.get(ipAddress):
|
||||||
del self.server.loginFailureCount[ipAddress]
|
del self.server.login_failure_count[ipAddress]
|
||||||
if isSuspended(base_dir, loginNickname):
|
if isSuspended(base_dir, loginNickname):
|
||||||
msg = \
|
msg = \
|
||||||
htmlSuspended(self.server.cssCache,
|
htmlSuspended(self.server.cssCache,
|
||||||
|
@ -18757,7 +18757,7 @@ def runDaemon(content_license_url: str,
|
||||||
httpd.allow_deletion = allow_deletion
|
httpd.allow_deletion = allow_deletion
|
||||||
httpd.last_login_time = 0
|
httpd.last_login_time = 0
|
||||||
httpd.last_login_failure = 0
|
httpd.last_login_failure = 0
|
||||||
httpd.loginFailureCount = {}
|
httpd.login_failure_count = {}
|
||||||
httpd.log_login_failures = log_login_failures
|
httpd.log_login_failures = log_login_failures
|
||||||
httpd.max_replies = max_replies
|
httpd.max_replies = max_replies
|
||||||
httpd.tokens = {}
|
httpd.tokens = {}
|
||||||
|
|
Loading…
Reference in New Issue