Enable fix stack for Android 7 and 9

This commit is contained in:
世界
2024-12-26 11:12:48 +08:00
parent 9c4ab0bf33
commit bc2e3960e4
6 changed files with 41 additions and 44 deletions

View File

@@ -7,7 +7,6 @@ import (
"path/filepath"
"time"
C "github.com/sagernet/sing-box/constant"
"github.com/sagernet/sing/common"
E "github.com/sagernet/sing/common/exceptions"
)
@@ -114,7 +113,7 @@ func (c *CommandClient) Connect() error {
if err != nil {
return err
}
if C.FixAndroidStack {
if sFixAndroidStack {
go func() {
c.handler.Connected()
c.handler.InitializeClashMode(newIterator(modeList), currentMode)