Skip to content

Commit

Permalink
Fixed format string variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Ne0nd0g committed Nov 27, 2023
1 parent 8c0dfad commit ca37ac4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/utls/utls.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) {
}
conn, err = net.Dial("tcp", address)
if err != nil {
return nil, fmt.Errorf("clients/utls/utls.go RoundTrip(): %s", err)
return nil, fmt.Errorf("clients/utls/utls.go RoundTrip(): %w", err)
}
} else {
// If there is a proxy, sent the HTTP CONNECT method request before establishing the TLS connection
Expand Down Expand Up @@ -452,7 +452,7 @@ func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) {
}

if resp.StatusCode != http.StatusOK {
return nil, fmt.Errorf("clients/utls/utls.go RoundTrip(): there was an error sending the CONNECT request: %w", resp.Status)
return nil, fmt.Errorf("clients/utls/utls.go RoundTrip(): there was an error sending the CONNECT request: %s", resp.Status)
}
conn = u.conn
}
Expand Down

0 comments on commit ca37ac4

Please sign in to comment.