Fix #146: Alerting causes panic with some providers
This commit is contained in:
1 parent
07b1a2eafb
commit
cdbc075439
5 files changed
+22
-9
No files matched your search
+4
-1
@@ -16,7 +16,10 @@ import (
|
||||
|
||||
// GetHTTPClient returns the shared HTTP client
|
||||
func GetHTTPClient(config *Config) *http.Client {
|
||||
return config.GetHTTPClient()
|
||||
if config == nil {
|
||||
return defaultConfig.getHTTPClient()
|
||||
}
|
||||
return config.getHTTPClient()
|
||||
}
|
||||
|
||||
// CanCreateTCPConnection checks whether a connection can be established with a TCP service
|
||||
|
||||
Reference in new issue
Block a user