mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
feat: Dosguard API weights (#2082)
Experimental support for Dosguard API weights.
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user