replace whole default client

This commit is contained in:
idk
2022-09-29 01:25:30 -04:00
parent ce113bdc76
commit fc7ff6fd53

View File

@ -85,8 +85,10 @@ func main() {
panic(err)
}
defer garlic.Close()
http.DefaultClient.Transport = &http.Transport{
Dial: garlic.Dial,
http.DefaultClient = &http.Client{
Transport: &http.Transport{
Dial: garlic.Dial,
},
}
allowList := readAllowlist(allowlistLocation)
allowList = append(allowList, "*.i2p")