feat: torrent seed config (#599)

This commit is contained in:
Levi authored and GitHub committed 2024-07-30 12:50:06 +08:00
1 parent 473c58796c
commit 3b50465708
22 files changed
+456 -144

No files matched your search

+2 -4
View File
@@ -7,7 +7,7 @@ import (
)
type Controller struct {
GetConfig func(v any) bool
GetConfig func(v any)
ProxyConfig *base.DownloaderProxyConfig
FileController
//ContextDialer() (proxy.Dialer, error)
@@ -22,10 +22,8 @@ type DefaultFileController struct {
func NewController() *Controller {
return &Controller{
GetConfig: func(v any) {},
FileController: &DefaultFileController{},
GetConfig: func(v any) bool {
return false
},
}
}