mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-12-02 06:38:36 +00:00
merge: Merge upstream v1.14.6
This commit is contained in:
@@ -2,6 +2,7 @@ package group
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
"net"
|
||||
"sync"
|
||||
"time"
|
||||
@@ -73,10 +74,14 @@ func (s *Fallback) Start(stage adapter.StartStage, scope *adapter.Scope) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *Fallback) Now() string {
|
||||
func (s *Fallback) Selected(network string) adapter.Outbound {
|
||||
s.mtx.Lock()
|
||||
defer s.mtx.Unlock()
|
||||
return s.lastUsedOutbound
|
||||
return s.outbounds[s.lastUsedOutbound]
|
||||
}
|
||||
|
||||
func (s *Fallback) AttachConnection(closer io.Closer) func() {
|
||||
return func() {}
|
||||
}
|
||||
|
||||
func (s *Fallback) All() []string {
|
||||
|
||||
Reference in New Issue
Block a user