chore: add exclude-filter to ProxyGroup

This commit is contained in:
wwqgtxx
2022-11-09 08:06:37 +08:00
parent 53b2a480ef
commit 5fd79890e7
9 changed files with 54 additions and 28 deletions

View File

@ -2,7 +2,7 @@ package resource
import (
"context"
netHttp "github.com/Dreamacro/clash/component/http"
clashHttp "github.com/Dreamacro/clash/component/http"
types "github.com/Dreamacro/clash/constant/provider"
"io"
"net/http"
@ -50,7 +50,7 @@ func (h *HTTPVehicle) Path() string {
func (h *HTTPVehicle) Read() ([]byte, error) {
ctx, cancel := context.WithTimeout(context.Background(), time.Second*20)
defer cancel()
resp, err := netHttp.HttpRequest(ctx, h.url, http.MethodGet, nil, nil)
resp, err := clashHttp.HttpRequest(ctx, h.url, http.MethodGet, nil, nil)
if err != nil {
return nil, err
}