chg: add more logs, add ip selector

This commit is contained in:
Hiddify
2024-02-20 09:18:53 +01:00
parent bc1c8eb05a
commit 84e9e1fa9a
5 changed files with 12 additions and 7 deletions

View File

@@ -82,7 +82,7 @@ func patchConfig(content []byte, name string) ([]byte, error) {
if err != nil {
return nil, fmt.Errorf("[SingboxParser] unmarshal error: %w", err)
}
b, _ := batch.New(context.Background(), batch.WithConcurrencyNum[*option.Outbound](10))
b, _ := batch.New(context.Background(), batch.WithConcurrencyNum[*option.Outbound](2))
for _, base := range options.Outbounds {
out := base
b.Go(base.Tag, func() (*option.Outbound, error) {