feat: Allow provider.dialer-proxy to specify all-proxies, not just proxies

This commit is contained in:
xireiki 2024-10-13 10:28:13 +08:00
parent ca3f1ebae6
commit 9ffde8aee1
No known key found for this signature in database
GPG key ID: 3ADA5231862C4770

View file

@ -27,7 +27,7 @@ func New(proxy C.ProxyAdapter, dialer C.Dialer, statistic bool) C.Dialer {
}
func NewByName(proxyName string, dialer C.Dialer) (C.Dialer, error) {
proxies := tunnel.Proxies()
proxies := tunnel.ProxiesWithProviders()
if proxy, ok := proxies[proxyName]; ok {
return New(proxy, dialer, true), nil
}