mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-10-26 13:06:56 +00:00
boxdd: Add insecure mode
This commit is contained in:
@@ -83,7 +83,7 @@ func NewHTTPClient() HTTPClient {
|
||||
client.transport.TLSClientConfig = &client.tls
|
||||
client.transport.DisableKeepAlives = true
|
||||
if C.IsAndroid {
|
||||
store, err := certificate.NewStore(logger.NOP(), option.CertificateOptions{})
|
||||
store, err := certificate.NewStore(context.Background(), logger.NOP(), option.CertificateOptions{})
|
||||
if err != nil {
|
||||
panic(E.Cause(err, "initialize certificate store"))
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@ import (
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"runtime/debug"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/sagernet/sing-box/common/networkquality"
|
||||
@@ -102,12 +101,9 @@ func Setup(options *SetupOptions) error {
|
||||
return redirectStderr(filepath.Join(sWorkingPath, "CrashReport-"+sCrashReportSource+".log"))
|
||||
}
|
||||
|
||||
func SetLocale(localeId string) error {
|
||||
if strings.Contains(localeId, "@") {
|
||||
localeId = strings.Split(localeId, "@")[0]
|
||||
}
|
||||
if !locale.Set(localeId) {
|
||||
return E.New("unsupported locale: ", localeId)
|
||||
func SetLocale(localeID string) error {
|
||||
if !locale.Set(localeID) {
|
||||
return E.New("unsupported locale: ", localeID)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user