mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-12-27 20:48:39 +01:00
Squelch excessive certificate validation error logging from client
This commit is contained in:
parent
a4e22c7868
commit
887c0a9a16
@ -4730,15 +4730,16 @@ class SidebandCore():
|
|||||||
# invalid certificate to the server. This will always
|
# invalid certificate to the server. This will always
|
||||||
# happen from some clients when using a self-signed
|
# happen from some clients when using a self-signed
|
||||||
# certificate, so we don't care.
|
# certificate, so we don't care.
|
||||||
server.BaseHTTPRequestHandler.handle_orig = server.BaseHTTPRequestHandler.handle
|
if not hasattr(server.BaseHTTPRequestHandler, "handle_orig"):
|
||||||
def handle(self):
|
server.BaseHTTPRequestHandler.handle_orig = server.BaseHTTPRequestHandler.handle
|
||||||
try:
|
def handle(self):
|
||||||
self.handle_orig()
|
try:
|
||||||
except ssl.SSLError:
|
self.handle_orig()
|
||||||
pass
|
except ssl.SSLError:
|
||||||
except Exception as e:
|
pass
|
||||||
RNS.log("HTTP server exception: "+str(e), RNS.LOG_ERROR)
|
except Exception as e:
|
||||||
server.BaseHTTPRequestHandler.handle = handle
|
RNS.log("HTTP server exception: "+str(e), RNS.LOG_ERROR)
|
||||||
|
server.BaseHTTPRequestHandler.handle = handle
|
||||||
#######################################################
|
#######################################################
|
||||||
|
|
||||||
socketserver.TCPServer.allow_reuse_address = True
|
socketserver.TCPServer.allow_reuse_address = True
|
||||||
|
Loading…
Reference in New Issue
Block a user