update to singbox1.8.4, fix vless http crash

This commit is contained in:
Hiddify
2024-01-26 14:49:22 +01:00
parent d53e472c1e
commit ed3e801839
5 changed files with 24 additions and 19 deletions

View File

@@ -3,6 +3,7 @@ package main
import (
"context"
"os"
"runtime"
runtimeDebug "runtime/debug"
B "github.com/sagernet/sing-box"
@@ -23,7 +24,8 @@ var (
)
func Setup(basePath string, workingPath string, tempPath string) {
libbox.Setup(basePath, workingPath, tempPath, false)
tcpConn := runtime.GOOS == "windows" //TODO add TVOS
libbox.Setup(basePath, workingPath, tempPath, tcpConn)
sWorkingPath = workingPath
os.Chdir(sWorkingPath)
sTempPath = tempPath