proper logging of selected endpoint

This commit is contained in:
Vladislav Yarmak
2025-09-14 22:56:19 +03:00
parent 6eb2054faf
commit ddea656d94
3 changed files with 19 additions and 2 deletions
+4
View File
@@ -221,6 +221,10 @@ func (d *ProxyDialer) Dial(network, address string) (net.Conn, error) {
return d.DialContext(context.Background(), network, address)
}
func (d *ProxyDialer) Address() (string, error) {
return d.address()
}
func readResponse(r io.Reader, req *http.Request) (*http.Response, error) {
endOfResponse := []byte("\r\n\r\n")
buf := &bytes.Buffer{}