From c19badfb92c0456d540767c92af67fe704b46cac Mon Sep 17 00:00:00 2001 From: gpkvt Date: Fri, 12 Aug 2022 15:25:44 +0200 Subject: [PATCH] Added port 3000 as valid port for OAuth --- tts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tts.py b/tts.py index cfe2620..127b93e 100644 --- a/tts.py +++ b/tts.py @@ -409,11 +409,13 @@ class HTTPserv(BaseHTTPRequestHandler): data['redirect_uri'] = "http://localhost/token" elif conf['HTTP_PORT'] == 8080: data['redirect_uri'] = "http://localhost:8080/token" + elif conf['HTTP_PORT'] == 3000: + data['redirect_uri'] = "http://localhost:3000/token" else: self.send_response(500) self.send_header('Content-type', 'text/plain') self.end_headers() - self.wfile.write(bytes("You can only use this function if HTTP_PORT is 80 or 8080. Please change your port or use https://www.21x9.org/twitch instead.\n", "utf-8")) + self.wfile.write(bytes("You can only use this function if HTTP_PORT is 80, 8080 or 3000. Please change your port, or use https://www.21x9.org/twitch instead.\n", "utf-8")) return False try: