test: 尝试启用xray splice拷贝

This commit is contained in:
wyx2685
2025-08-22 05:22:47 +09:00
parent 7d52a8932d
commit 6e8297c553
9 changed files with 473 additions and 454 deletions

View File

@@ -6,8 +6,6 @@ import (
"strings"
"sync"
"github.com/hashicorp/go-multierror"
"github.com/InazumaV/V2bX/api/panel"
"github.com/InazumaV/V2bX/conf"
)
@@ -50,14 +48,13 @@ func (s *Selector) Start() error {
}
func (s *Selector) Close() error {
var errs error
var errs []error
for i := range s.cores {
err := s.cores[i].Close()
if err != nil {
errs = multierror.Append(errs, err)
if err := s.cores[i].Close(); err != nil {
errs = append(errs, err)
}
}
return errs
return errors.Join(errs...)
}
func isSupported(protocol string, protocols []string) bool {