Include peer net.Conn endpoint addresses in webrtc conn string

This commit is contained in:
Matt Joiner 2022-01-27 13:45:36 +11:00
parent c47e6b1f60
commit 1512857348
1 changed files with 1 additions and 1 deletions

View File

@ -1548,7 +1548,7 @@ func (t *Torrent) onWebRtcConn(
false, false,
netConn.RemoteAddr(), netConn.RemoteAddr(),
webrtcNetwork, webrtcNetwork,
fmt.Sprintf("webrtc offer_id %x", dcc.OfferId), fmt.Sprintf("webrtc offer_id %x: %v", dcc.OfferId, regularNetConnPeerConnConnString(netConn)),
) )
if err != nil { if err != nil {
t.logger.WithDefaultLevel(log.Error).Printf("error in handshaking webrtc connection: %v", err) t.logger.WithDefaultLevel(log.Error).Printf("error in handshaking webrtc connection: %v", err)