]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Use new conntrack priorities
authorMatt Joiner <anacrolix@gmail.com>
Tue, 27 Nov 2018 12:22:24 +0000 (23:22 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 27 Nov 2018 12:22:24 +0000 (23:22 +1100)
Fixes #295

client.go

index e17fd0aa410ee9dad48aab3e2f23a7148f7a6d6b..d348a1d81623f0682e21ab4cda075d618da42176 100644 (file)
--- a/client.go
+++ b/client.go
@@ -544,7 +544,9 @@ func (cl *Client) dialFirst(ctx context.Context, addr string) dialResult {
                                go func() {
                                        cte := cl.config.ConnTracker.Wait(
                                                conntrack.Entry{network, s.Addr().String(), addr},
-                                               "dial torrent client")
+                                               "dial torrent client",
+                                               0,
+                                       )
                                        c, err := s.dial(ctx, addr)
                                        // This is a bit optimistic, but it looks non-trivial to thread
                                        // this through the proxy code. Set it now in case we close the