minor improvements

This commit is contained in:
2025-02-06 00:54:11 +01:00
parent 4aa164d148
commit 7a8a8ee260
3 changed files with 8 additions and 3 deletions

View File

@@ -191,6 +191,6 @@ if __name__ == '__main__':
setupStats(driver, url)
logger.log(logging.INFO, 'Starting server collector.')
httpd = HTTPServer(('collector', 9092), partial(Handler, downloadStats, driver, logger))
httpd = HTTPServer(('', 9092), partial(Handler, downloadStats, driver, logger))
logger.info('Server collector started.')
httpd.serve_forever()

View File

@@ -21,4 +21,9 @@ class Handler(BaseHTTPRequestHandler):
else:
self.send_response(404)
self.end_headers()
self.wfile.write(b'404 Not Found')
self.wfile.write(b'404 Not Found')
def do_GET(self):
self.send_response(404)
self.end_headers()
self.wfile.write(b'404 Not Found')

View File

@@ -18,7 +18,7 @@ const DEFAULT_OPTIONS = {
enabledOrigins: {
"http://*/*": true,
"https://*/*": true,
"https://tube.kobim.cloud"
"https://tube.kobim.cloud": true,
},
enabledStats: ["data-channel", "local-candidate", "remote-candidate"]
};