mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 04:30:08 +00:00
test: 尝试启用xray splice拷贝
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user