From 4a304f2498bfa6f6788ff0782f7d6ad5cd1a9ac5 Mon Sep 17 00:00:00 2001 From: user Date: Sat, 21 Feb 2026 20:06:20 +0100 Subject: [PATCH] fix: route Teams send() through SOCKS5 proxy Teams send() used urllib.request.urlopen directly, bypassing the SOCKS5 proxy. Replace with derp.http.urlopen to match all other outbound HTTP. --- src/derp/teams.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/derp/teams.py b/src/derp/teams.py index 4ff322a..64b5374 100644 --- a/src/derp/teams.py +++ b/src/derp/teams.py @@ -14,6 +14,7 @@ import urllib.request from dataclasses import dataclass, field from pathlib import Path +from derp import http from derp.bot import _TokenBucket from derp.plugin import TIERS, PluginRegistry from derp.state import StateStore @@ -389,7 +390,7 @@ class TeamsBot: ) loop = asyncio.get_running_loop() try: - await loop.run_in_executor(None, urllib.request.urlopen, req) + await loop.run_in_executor(None, http.urlopen, req) except Exception: log.exception("teams: failed to send via incoming webhook")