Skip to content

Commit 8ab1e47

Browse files
committed
updated some configs
1 parent 55c5d50 commit 8ab1e47

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/utils/flags.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,11 @@ func SetTorrentFsConfig(ctx *cli.Context, cfg *torrentfs.Config) {
12111211
log.Info("IPCPath", "path", cfg.IpcPath)
12121212
}
12131213
trackers := ctx.GlobalString(StorageTrackerFlag.Name)
1214+
boostnodes := ctx.GlobalString(StorageBoostNodesFlag.Name)
12141215
cfg.DefaultTrackers = strings.Split(trackers, ",")
1216+
cfg.BoostNodes = strings.Split(boostnodes, ",")
1217+
cfg.MaxSeedingNum = ctx.GlobalInt(StorageMaxSeedingFlag.Name)
1218+
cfg.MaxActiveNum = ctx.GlobalInt(StorageMaxActiveFlag.Name)
12151219
cfg.SyncMode = ctx.GlobalString(SyncModeFlag.Name)
12161220
cfg.DataDir = MakeStorageDir(ctx)
12171221
}

0 commit comments

Comments
 (0)