diff --git a/changelog.d/360.bugfix b/changelog.d/360.bugfix new file mode 100644 index 00000000..5529e96e --- /dev/null +++ b/changelog.d/360.bugfix @@ -0,0 +1 @@ +Fixed an issue which resulted in proxy configuration being ignored for APNs notifications. diff --git a/sygnal/apnspushkin.py b/sygnal/apnspushkin.py index f227dc5a..a334745c 100644 --- a/sygnal/apnspushkin.py +++ b/sygnal/apnspushkin.py @@ -213,6 +213,9 @@ async def make_apns() -> aioapns.APNs: # without this, aioapns will retry every second forever. self.apns_client.pool.max_connection_attempts = 3 + # without this, aioapns will not use the proxy if one is configured. + self.apns_client.pool.loop = loop + def _report_certificate_expiration(self, certfile: str) -> None: """Export the epoch time that the certificate expires as a metric.""" with open(certfile, "rb") as f: