feat: support proxy from system env

This commit is contained in:
liwei committed 2024-05-01 18:35:32 +08:00
1 parent f8ea009fe9
commit 82b6ebd6f1
17 files changed
+175 -97

No files matched your search

+3 -3
View File
@@ -1,14 +1,14 @@
package controller
import (
"net/url"
"github.com/GopeedLab/gopeed/pkg/base"
"os"
"path/filepath"
)
type Controller struct {
GetConfig func(v any) bool
ProxyUrl *url.URL
GetConfig func(v any) bool
ProxyConfig *base.DownloaderProxyConfig
FileController
//ContextDialer() (proxy.Dialer, error)
}