diff --git a/netbox/client.go b/netbox/client.go index a176247d..553beb14 100644 --- a/netbox/client.go +++ b/netbox/client.go @@ -60,6 +60,8 @@ func (cfg *Config) Client() (*netboxclient.NetBoxAPI, error) { return nil, err } + trans.(*http.Transport).Proxy = http.ProxyFromEnvironment + if cfg.Headers != nil && len(cfg.Headers) > 0 { log.WithFields(log.Fields{ "custom_headers": cfg.Headers,