mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 05:04:03 +03:00
Add PatchHTTPClient method
This method is mostly required for testing
This commit is contained in:
@@ -120,6 +120,9 @@ func (n *network) MakeHTTPClient(timeout time.Duration) *http.Client {
|
||||
}
|
||||
}
|
||||
|
||||
func (n *network) PatchHTTPClient(_ *http.Client) {
|
||||
}
|
||||
|
||||
func NewNetwork(dialer Dialer, dohHostname string, idleTimeout time.Duration) (Network, error) {
|
||||
switch {
|
||||
case idleTimeout < 0:
|
||||
|
||||
Reference in New Issue
Block a user