Skip to content

Commit 2190d88

Browse files
itsmeowCrossedfall
andauthored
Allow lower seeker ports (#34)
* Allow lower seeker ports I got a seeker port of 1035. Ugh, didn't know this was possible. * Update src/bapi/blueprints/discord.py Co-authored-by: Crossedfall <ping@crossedfall.io> --------- Co-authored-by: Crossedfall <ping@crossedfall.io>
1 parent 85ff51b commit 2190d88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bapi/blueprints/discord.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def discord_auth():
4141
seeker_port = int(seeker_port)
4242
except ValueError:
4343
seeker_port = ""
44-
if not isinstance(seeker_port, int) or seeker_port > 65535 or seeker_port < 10000:
44+
if not isinstance(seeker_port, int) or seeker_port > 65535 or seeker_port < 1023:
4545
seeker_port = ""
4646
session["oauth2_state"] = (
4747
f"{urllib.parse.quote(ip.exploded, safe="", encoding="utf-8")},{seeker_port},{secrets.token_urlsafe(16)}"

0 commit comments

Comments
 (0)