mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-12-05 08:04:11 +00:00
Fix URLTest selection and idle connection references
This commit is contained in:
@@ -127,12 +127,12 @@ func (s *Selector) AttachConnection(closer io.Closer) func() {
|
||||
return s.interruptGroup.Add(closer, true)
|
||||
}
|
||||
|
||||
func (s *Selector) References() []string {
|
||||
func (s *Selector) References() ([]string, []string) {
|
||||
selected := s.selected.Load()
|
||||
if selected == nil {
|
||||
return s.tags[:1]
|
||||
return s.tags[:1], nil
|
||||
}
|
||||
return []string{selected.Tag()}
|
||||
return []string{selected.Tag()}, nil
|
||||
}
|
||||
|
||||
func (s *Selector) SelectOutbound(tag string) bool {
|
||||
|
||||
Reference in New Issue
Block a user