From 61cfc9acfbdfb4a8ae8e6536741fb9449dafcb51 Mon Sep 17 00:00:00 2001 From: Shawn-Huang-Tron <107823650+Shawn-Huang-Tron@users.noreply.github.com> Date: Fri, 25 Nov 2022 14:54:59 +0800 Subject: [PATCH] feat: add adds pin (#268) * feat[bittorrent]: listen port from 30000 to 31000 * fix: add adds pin --- core/commands/bittorrent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/commands/bittorrent.go b/core/commands/bittorrent.go index 273ba41a4..251cceecd 100644 --- a/core/commands/bittorrent.go +++ b/core/commands/bittorrent.go @@ -271,7 +271,7 @@ var downloadBTCmd = &cmds.Command{ } btfsBinaryPath := "btfs" - cmd := exec.Command(btfsBinaryPath, "add", "-r", t.Name()) + cmd := exec.Command(btfsBinaryPath, "add", "-r", "--pin", t.Name()) go func() { time.Sleep(10 * time.Minute)