feat(proxy): add proxy from env variables

This commit is contained in:
2026-01-25 12:55:07 +03:00
parent 4f8118562e
commit daf99c5b66

View File

@@ -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)