mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-02 00:11:56 +03:00
Add PatchHTTPClient method
This method is mostly required for testing
This commit is contained in:
@@ -80,6 +80,8 @@ func (c *cliCommandAccess) getIP(protocol string) net.IP {
|
||||
},
|
||||
}
|
||||
|
||||
c.network.PatchHTTPClient(client)
|
||||
|
||||
resp, err := client.Get("https://ifconfig.co") // nolint: bodyclose, noctx
|
||||
if err != nil {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user