mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-10 03:16:07 +08:00
make http transport for apns proxy-aware (#698)
Co-authored-by: Thomas Esser <meta.kontakte@gmail.com>
This commit is contained in:
@@ -136,6 +136,7 @@ func newClient(cert tls.Certificate) (*http.Client, error) {
|
||||
}
|
||||
config.BuildNameToCertificate()
|
||||
transport := &http.Transport{
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
TLSClientConfig: config,
|
||||
IdleConnTimeout: 90 * time.Second,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user