]> Sergey Matveev's repositories - btrtrc.git/commit
Use webrtc local addr for webrtc conn peer priority
authorMatt Joiner <anacrolix@gmail.com>
Mon, 11 Jul 2022 08:22:23 +0000 (18:22 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 12 Jul 2022 05:52:03 +0000 (15:52 +1000)
commit214fe6b93c62c805f2ddfe056238e84c9cd5ede7
treebd420da88659df44d488d06bd4845da3ddf94e7f
parentaedf2583ccdeafc815223b9edae1e19e7b8d33f3
Use webrtc local addr for webrtc conn peer priority

WebRTC conns are providing the correct IP for peer priority calculations, so use that instead of trying to guess (which doesn't work if there are no regular conn listeners attached to the Client.

(cherry picked from commit e86bb5fee3958dc90a3d012469b1352005d6c9ad)
bep40_test.go
client.go
peer.go
peerconn.go
peerconn_test.go
pexconn_test.go
torrent.go