We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 858db1a commit d7f220dCopy full SHA for d7f220d
quic/conn.go
@@ -176,6 +176,16 @@ func (c *Conn) String() string {
176
return fmt.Sprintf("quic.Conn(%v,->%v)", c.side, c.peerAddr)
177
}
178
179
+// LocalAddr returns the local network address, if known.
180
+func (c *Conn) LocalAddr() netip.AddrPort {
181
+ return c.localAddr
182
+}
183
+
184
+// RemoteAddr returns the remote network address, if known.
185
+func (c *Conn) RemoteAddr() netip.AddrPort {
186
+ return c.peerAddr
187
188
189
// confirmHandshake is called when the handshake is confirmed.
190
// https://www.rfc-editor.org/rfc/rfc9001#section-4.1.2
191
func (c *Conn) confirmHandshake(now time.Time) {
0 commit comments