Skip to content
This repository was archived by the owner on Apr 26, 2026. It is now read-only.

Commit 42eb626

Browse files
committed
Update default PROXY_URL in load_env fallback
Changed the default PROXY_URL from allorigins.win to codetabs.com in the load_env function's FileNotFoundError fallback. This updates the proxy service used when the .env file is missing.
1 parent f185871 commit 42eb626

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tool-09-Invite-Validator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ def load_env():
1818
env_vars[key] = value
1919
except FileNotFoundError:
2020
print(".env file not found. Using default values.")
21-
env_vars["PROXY_URL"] = "https://api.allorigins.win/get?url="
21+
env_vars["PROXY_URL"] = "https://api.codetabs.com/v1/proxy/?quest="
2222
env_vars["DISCORD_INVITE_RATE_LIMIT"] = "20"
2323
return env_vars
2424

2525

2626
env_vars = load_env()
2727

2828
# Configuration
29-
PROXY_URL = env_vars.get("PROXY_URL", "https://api.allorigins.win/get?url=")
29+
PROXY_URL = env_vars.get("PROXY_URL", "https://api.codetabs.com/v1/proxy/?quest=")
3030
RATE_LIMIT = int(env_vars.get("DISCORD_INVITE_RATE_LIMIT", 20))
3131
JSON_FILE_PATH = os.path.join(
3232
os.path.dirname(__file__),

0 commit comments

Comments
 (0)