mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 20:14:01 +03:00
Use curl as user agent
This commit is contained in:
@@ -76,6 +76,10 @@ func New(
|
||||
dnsResolver = net.DefaultResolver
|
||||
}
|
||||
|
||||
if userAgent == "" {
|
||||
userAgent = UserAgent
|
||||
}
|
||||
|
||||
return &network{
|
||||
Dialer: net.Dialer{
|
||||
Timeout: tcpTimeout,
|
||||
|
||||
Reference in New Issue
Block a user