mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-09-24 17:00:28 +00:00
Update tailscale to v1.102.1
This commit is contained in:
@@ -407,11 +407,9 @@ func (r *directionRunner) addConnection(ctx context.Context) error {
|
||||
r.connMu.Lock()
|
||||
r.connections = append(r.connections, conn)
|
||||
r.connMu.Unlock()
|
||||
r.wg.Add(1)
|
||||
go func() {
|
||||
defer r.wg.Done()
|
||||
r.wg.Go(func() {
|
||||
conn.run(ctx, r.onConnectionFailed)
|
||||
}()
|
||||
})
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -437,9 +435,7 @@ func (r *directionRunner) pickReadyConnection() *loadConnection {
|
||||
}
|
||||
|
||||
func (r *directionRunner) startProber(ctx context.Context) {
|
||||
r.wg.Add(1)
|
||||
go func() {
|
||||
defer r.wg.Done()
|
||||
r.wg.Go(func() {
|
||||
ticker := time.NewTicker(r.probeInterval())
|
||||
defer ticker.Stop()
|
||||
for {
|
||||
@@ -455,7 +451,7 @@ func (r *directionRunner) startProber(ctx context.Context) {
|
||||
r.runProbeRound(ctx, conn.client)
|
||||
ticker.Reset(r.probeInterval())
|
||||
}
|
||||
}()
|
||||
})
|
||||
}
|
||||
|
||||
func (r *directionRunner) runProbeRound(ctx context.Context, selfClient *http.Client) {
|
||||
|
||||
Reference in New Issue
Block a user