]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Include peer net.Conn endpoint addresses in webrtc conn string
authorMatt Joiner <anacrolix@gmail.com>
Thu, 27 Jan 2022 02:45:36 +0000 (13:45 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 27 Jan 2022 04:24:48 +0000 (15:24 +1100)
torrent.go

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