mirror of
https://gitlab.com/gpvkt/twitchtts.git
synced 2025-04-19 02:02:26 +02:00
Added port 3000 as valid port for OAuth
This commit is contained in:
parent
a716072612
commit
c19badfb92
1 changed files with 3 additions and 1 deletions
4
tts.py
4
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:
|
||||
|
|
Loading…
Add table
Reference in a new issue