feat: Dosguard API weights (#2082)

Experimental support for Dosguard API weights.
This commit is contained in:
Sergey Kuznetsov
2025-05-13 15:02:21 +01:00
committed by GitHub
parent d02da5d28a
commit b87b32db86
42 changed files with 1653 additions and 329 deletions

View File

@@ -74,6 +74,7 @@ func NewHttp(host string, port uint) *HttpRequestMaker {
host = "http://" + host
}
transport := http.DefaultTransport.(*http.Transport).Clone()
transport.DisableKeepAlives = true
client := &http.Client{Transport: transport}
return &HttpRequestMaker{host + ":" + fmt.Sprintf("%d", port), transport, client}