Bugfix in client cleanup
This commit is contained in:
parent
77db628903
commit
020af11d1a
@ -563,9 +563,11 @@ class WebRXHandler(BaseHTTPRequestHandler):
|
|||||||
if extension == "wrx" and ( (not anyStringsPresentInUserAgent(("Chrome","Firefox","Googlebot","iPhone","iPad","iPod"))) if 'user-agent' in self.headers.keys() else True ) and (not request_param.count("unsupported")):
|
if extension == "wrx" and ( (not anyStringsPresentInUserAgent(("Chrome","Firefox","Googlebot","iPhone","iPad","iPod"))) if 'user-agent' in self.headers.keys() else True ) and (not request_param.count("unsupported")):
|
||||||
self.send_302("upgrade.html")
|
self.send_302("upgrade.html")
|
||||||
return
|
return
|
||||||
if extension == "wrx" and cfg.max_clients<=len(clients):
|
if extension == "wrx":
|
||||||
self.send_302("retry.html")
|
cleanup_clients(False)
|
||||||
return
|
if cfg.max_clients<=len(clients):
|
||||||
|
self.send_302("retry.html")
|
||||||
|
return
|
||||||
self.send_response(200)
|
self.send_response(200)
|
||||||
if(("wrx","html","htm").count(extension)):
|
if(("wrx","html","htm").count(extension)):
|
||||||
self.send_header('Content-type','text/html')
|
self.send_header('Content-type','text/html')
|
||||||
|
Loading…
Reference in New Issue
Block a user