Closed SupaBasti closed 2 years ago
I believe this is an issue upstream first, with https://github.com/kylebrowning/APNSwift/issues/104
Closing since this is resolved in upstream
I do not see where it is fixed upstream. In APNSClient.swift HTTPClient is initiated like this using default Configuration() which uses no Proxy:
self.httpClient = HTTPClient(
eventLoopGroupProvider: configuration.eventLoopGroupProvider.httpClientValue
)
Maybe proxy can be passed in via APNSConfiguration and then used to pass a proxy-enabled Configuration() to HTTPClient
Can you try this. https://github.com/swift-server-community/APNSwift/pull/137
awesome. Thanks a lot!
Did it work @SupaBasti ?
couldn't check it out yet, but from code it looks promising
right now, APNSwiftConnection does not support to configure any Proxy-Server.
I would expect to consider the configuration from my configure.swift, e.g.: app.http.client.configuration.proxy = .some(.server(host: "localhost", port: 3128))