feat(proxy): add proxy from env variables
This commit is contained in:
8
main.go
8
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)
|
||||
|
||||
Reference in New Issue
Block a user