diff --git a/main.go b/main.go index cd4409a..08dba11 100644 --- a/main.go +++ b/main.go @@ -122,7 +122,13 @@ func main() { agg := NewAggregator() - client := &http.Client{Timeout: 15 * time.Second} + transport := &http.Transport{ + Proxy: http.ProxyFromEnvironment, + } + client := &http.Client{ + Timeout: 15 * time.Second, + Transport: transport, + } for _, source := range cfg.Sources { cached, err := loadCachedLinks(cfg.CacheDir, source)