]> Sergey Matveev's repositories - btrtrc.git/blobdiff - portfwd.go
Lots of improvements to logging
[btrtrc.git] / portfwd.go
index b8d70482aa80f21aa07c71df8af58a541796ef35..2a223a3824cd567d84147f8732f834dc9b6cb859 100644 (file)
@@ -4,7 +4,7 @@ import (
        "time"
 
        "github.com/anacrolix/log"
-       "github.com/elgatito/upnp"
+       "github.com/anacrolix/upnp"
 )
 
 func addPortMapping(d upnp.Device, proto upnp.Protocol, internalPort int, debug bool) {
@@ -25,7 +25,7 @@ func (cl *Client) forwardPort() {
                return
        }
        cl.unlock()
-       ds := upnp.Discover(0, 2*time.Second)
+       ds := upnp.Discover(0, 2*time.Second, cl.logger)
        cl.lock()
        cl.logger.Printf("discovered %d upnp devices", len(ds))
        port := cl.incomingPeerPort()