We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 03fab1a + 80a65c4 commit 213a14cCopy full SHA for 213a14c
request.go
@@ -146,6 +146,7 @@ func (r *Request) TraceInfo() TraceInfo {
146
// Capture remote address info when connection is non-nil
147
if ct.gotConnInfo.Conn != nil {
148
ti.RemoteAddr = ct.gotConnInfo.Conn.RemoteAddr()
149
+ ti.LocalAddr = ct.gotConnInfo.Conn.LocalAddr()
150
}
151
152
return ti
trace.go
@@ -102,6 +102,9 @@ type TraceInfo struct {
102
103
// RemoteAddr returns the remote network address.
104
RemoteAddr net.Addr
105
+
106
+ // LocalAddr returns the local network address.
107
+ LocalAddr net.Addr
108
109
110
type clientTrace struct {
0 commit comments