client.go | 2 +- fs/torrentfs.go | 2 ++ diff --git a/client.go b/client.go index 7fb7d50161a679697efa3b6744a8d42510b93a42..290ea711aaa7294dccc5a5ff4b6dc4d250272ff3 100644 --- a/client.go +++ b/client.go @@ -521,7 +521,7 @@ } func (cl *Client) dialTCP(ctx context.Context, addr string) (c net.Conn, err error) { d := net.Dialer{ - // LocalAddr: cl.tcpListener.Addr(), + // LocalAddr: cl.tcpListener.Addr(), } c, err = d.DialContext(ctx, "tcp", addr) countDialResult(err) diff --git a/fs/torrentfs.go b/fs/torrentfs.go index 65cb42cef2efed3b1a6509c32804d29917b64daf..5fdc95e8cc4abc0d20489c0275e8c6068245de20 100644 --- a/fs/torrentfs.go +++ b/fs/torrentfs.go @@ -40,6 +40,8 @@ _ fusefs.HandleReadDirAller = rootNode{} _ fusefs.HandleReadDirAller = dirNode{} ) +// Is a directory node that lists all torrents and handles destruction of the +// filesystem. type rootNode struct { fs *TorrentFS }